Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

How to read number of rows using table variable

$
0
0

Hi

 

I am trying to read a database table into a table variable.

 

For example,

 

v_employee = select * from Employee where name = 'John';

 

Now, requirement is to obtain number of rows returned by the query into table variable v_employee. How to get this rowcount?

 

I triend using cursors but now getting correct result.


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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