Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Obtaining number of rows after select statement in SQL Script

$
0
0

Hello Richard,

 

Thanks for the detailed explanation. It worked. I was missing approach of saving count(*) into local variable.

 

Between, I tried ::ROWCOUNT option. That is,

 

t_emp =select * from Employee;

 

if ::ROWCOUNT > 0 then.....

 

 

but somehow it did not work. Also, tried opening up the cursor on the select statement and using its ROWCOUNT property, but no luck there too.

 

Finally, your approach and worked like a breeze.

 

AO.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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