Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA equivalent of oracle's sql%rowcount to get affected rows.

$
0
0

I want to get the number of rows affected from an insert or update statement inside a stored procedure.

 

Is there any equivalent to oracle's sql%rowcount that can be called after the query.

 

For example:

 

create procedure procedure_name

begin

     declare l_c integer;

     insert into table values ('somevalue');

     l_c := sql%rowcount; -- This would return 1 for the row inserted.

end;


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>