Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Arun Jamwal — — source: Informix-list mailing list archive (1991-1998)
Hi everyone!
I want to do a SELECT where FROM table-name is unknown
until the runtime. The sample code follows:
create procedure stp_gettablename ()as
begin
declare @tab_name varchar(255)
declare tname_cur cursor for
select @tab_name from list_id
open tname_cur
fetch tname_cur into @tab_name
select * from @tab_name
--------------------complains about non-static name
end
Can it be done somehow? Any tips/hints would be welcome!
Thanks.
Jamwal.
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.