How can I get the number of records affected by a stored procedure?
Answer / Amit Khanna
In PL/SQL, you can use the `sql%ROWCOUNT` attribute to obtain the number of rows affected by a DML statement (INSERT, UPDATE, DELETE) executed within a stored procedure. Assign the value of `sql%ROWCOUNT` to a variable before exiting the procedure.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of time stamp in select statement?
What is the difference between left outer join and left join?
Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?
What are the constraints available in sql?
Does a join table need a primary key?
Does view contain data?
Is like operator in sql case sensitive?
What has stored procedures in sql?
what is the difference between nested subquery and correlated subquery?
How sql query is executed?
How to revise and re-run the last sql command?
I have a Employee table with columns ename,eid,salary,deptno. How to retrieve sum of salary for each deptno?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)