adspace
How can I get the number of records affected by a stored procedure?
Answer Posted / 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 |
Post New Answer View All Answers
Does group by remove duplicates?
how many tables will create when we create table, what are they? : Sql dba
What is the best sql course?
Is inner join faster than left join?
If a cursor is open, how can we find in a pl/sql block?
how to use regular expression in pattern match conditions? : Sql dba
what is dbms? : Sql dba
Is primary key always clustered index?
Can we use distinct and group by together?
How do I remove duplicates in two columns?
what is bcp? When does it used? : Sql dba
Is primary key clustered index?
how to escape special characters in sql statements? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
what is sql server agent? : Sql dba