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.
Rudy Fernandes — — source: Informix-list mailing list archive (1991-1998)
In article <332F3717.41C6@quality.com>,
Arun Jamwal <jamwal@quality.com> wrote:
>Hi everyone!
>
>I want to do a SELECT where FROM table-name is unknown
>until the runtime. The sample code follows:
PREPARE your statement. For example
.
LET l_select = 'SELECT * FROM ', l_tablename, '....'
PREPARE stmt_1 FROM l_select
DECLARE anytab_curs CURSOR FOR stmt_1
.
HTH
----------------------
Rudy Fernandes (ICP)
GIC, Kuwait
----------------------
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.