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

How to use table variable in dynamic sql

$
0
0

Hi ,

 

Inside a procedure, I use a table variable to store the some result from table A .

I have to use this table variable in dynamic sql .

 

Eg)

Call Procedure A()

Begin

 

VAR_TAB = select customer_id from table_A;

 

EXEC ' select * from'||: var_tab;

 

End;

 

The above code will throw error. Anyone has a solution for this ?

 

Thanks,

Yogesh


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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