Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Distinguished Engineer Program
Viewing all articles
Browse latest Browse all 34

creating a table dynamically using a stored procedure......

$
0
0

hello,

         Im trying to create a procedure to create a table dynamically by passing table name as parameter in dis way ...but its not working

 

 

 

create procedure creat_tab(in tablename varchar(50))as

begin

create table :tablename(col1 varchar(50),col2 varchar(50));

end

----

call procedure('table1');

 

 

it should create different tables dynamically based on the parameter passed

I tried using table type concept also but it didnt work

plz help me out

 

 

 

Thanks & Regards

Sindu


Viewing all articles
Browse latest Browse all 34

Trending Articles