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

Re: Looping over a table variable

$
0
0

Hi Daniel,

It is about execution block.

Can you try using

 

create procedure TEST_PROC ()

as

 

begin

     temp = SELECT a, b,c  from atable;

 

begin

     DECLARE CURSOR cur FOR SELECT * FROM :temp;

   -- Do your processing here

end;

 

end;


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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