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


Please Help Members By Posting Answers For Below Questions

Does group by remove duplicates?

1112


how many tables will create when we create table, what are they? : Sql dba

1144


What is the best sql course?

1050


Is inner join faster than left join?

1278


If a cursor is open, how can we find in a pl/sql block?

1239


how to use regular expression in pattern match conditions? : Sql dba

1113


what is dbms? : Sql dba

1061


Is primary key always clustered index?

1096


Can we use distinct and group by together?

1133


How do I remove duplicates in two columns?

1188


what is bcp? When does it used? : Sql dba

1057


Is primary key clustered index?

1020


how to escape special characters in sql statements? : Sql dba

1115


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

2092


what is sql server agent? : Sql dba

1182