zbychu wrote:
Hi
Db2UDB version 8.2
Is possible difrent way than this
DECLARE TT
as select * from session.TT
definition only;
db2 => connect to test;
Database Connection Information
Database server = DB2/NT 8.2.0
SQL authorization ID = SRIELAU
Local database alias = TEST
db2 => declare global temporary table t(c1 int);
DB20000I The SQL command completed successfully.
db2 => describe select * from session.t;
SQLDA Information
sqldaid : SQLDA sqldabc: 896 sqln: 20 sqld: 1
Column Information
sqltype sqllen sqlname.data
sqlname.length
-------------------- ------ ------------------------------
--------------
497 INTEGER 4 C1
2
Will that do?
Cheers
Serge