tags:

views:

391

answers:

1

Hi all,

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?

+1  A: 

I have found the solution:

DECLARE @cursor CURSOR USING @cursorQuery;
Open @cursor

And so on.

jwdehaan