If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Generate the CREATE/DROP statement and execute it.
If the variable is in an SQL procedure, you can use the EXECUTE IMMEDIATE statement for that. In other programming languages, you use regular dynamic SQL.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development