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

dynamic sql for select statement in procedure

$
0
0

Hi

 

i would like to use a dynamic select statment within a hana procedure.

the select statement should use value of the variable v_name as data field of the table DEBT.

 

like this: (But this shows only the value GENDER in the resut)

 

 

create type t_woe astable (I_GENDER nvarchar);

 

procedure get_amount ( out v_woe t_woe )

sqlscript as

 

begin

 

v_name char(10) := 'GENDER';


v_woe = select:v_nameasI_GENDERfrom DEBT;

 

end;

 

Thanks in Advance

Mike


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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