0

I have a parameter which can have n inputs which are , separated. example : asd,qwe,zxc Now I need to create an sql from based on the parameter passed inside a stored procedure. example : select asd ,qwe,zxc from table1 Is this possible in sybase ase 15.7 Thanks Rinu

doubting
  • 13
  • 1
  • 6

1 Answers1

0

Yes, just concatenate the various elements into the desied SQL query and store it in a varchar variable. Then execute the query with 'exec(@yourvariable)'

RobV
  • 2,263
  • 1
  • 11
  • 7