Use table variable in dynamic SQL in SAP HANA?
Inside a procedure, I use a table variable to store the result from table A. I have to use this table variable in dynamic SQL. Here is my code: Call Procedure A() Begin VAR_TAB = select customer_id from table_A; EXEC ' select * from'||: var_tab; End; The above code will throw an error. How do I fix this?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.