talexb has asked for the wisdom of the Perl Monks concerning the following question:
I'm going through some old Perl code that accesses a DB2 database, and in many of the queries and commands, the schema is specified using a variable that's interpolated into the query or command string.
This is something that goes against the grain. I know that if I'm dealing with a single schema, I can just set schema foo and move on. However, in some cases there are two schemas in a single query or command. And, of course, a schema's not something that can be specified with a placeholder, as far as I know.
So am I stuck using variables to specify the multiple schemas in a query or command? Comments? Thoughts? Novel ideas?
Thanks all. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DB2 / Multiple schemas in a query or command
by Tanktalus (Canon) on Dec 15, 2008 at 23:03 UTC | |
|
Re: DB2 / Multiple schemas in a query or command
by kennethk (Abbot) on Dec 15, 2008 at 22:40 UTC | |
|
Re: DB2 / Multiple schemas in a query or command
by runrig (Abbot) on Dec 16, 2008 at 00:26 UTC | |
by talexb (Chancellor) on Dec 16, 2008 at 04:37 UTC | |
by roboticus (Chancellor) on Dec 16, 2008 at 11:49 UTC | |
by talexb (Chancellor) on Dec 16, 2008 at 14:46 UTC | |
by runrig (Abbot) on Dec 16, 2008 at 16:58 UTC |