1

I need to create a dynamic resultset in a stored procedure in Sybase ASA 9.

Lets say I have a query:

'SELECT '+@Description+', '+@Id+' From '+@Table;

I need to create a cursor to get all values of that query. How?

Danny Beckett
  • 20,529
  • 24
  • 107
  • 134
jwdehaan
  • 1,445
  • 3
  • 13
  • 25

1 Answers1

2

I have found the solution:

DECLARE @cursor CURSOR USING @cursorQuery;
Open @cursor

And so on.

jwdehaan
  • 1,445
  • 3
  • 13
  • 25