=============================================================================
[db2inst1@buffy tmartin]$ db2 list tables
Table/View Schema Type Creation time
------------------------------- --------------- ----- --------------------------
CL_SCHED DB2INST1 T 2002-12-01-11.34.25.262670
DEPARTMENT DB2INST1 T 2002-12-01-11.34.07.107148
EMP_ACT DB2INST1 T 2002-12-01-11.34.10.537600
EMP_PHOTO DB2INST1 T 2002-12-01-11.34.16.575583
EMP_RESUME DB2INST1 T 2002-12-01-11.34.21.362912
EMPLOYEE DB2INST1 T 2002-12-01-11.34.07.690746
IN_TRAY DB2INST1 T 2002-12-01-11.34.25.350675
ORG DB2INST1 T 2002-12-01-11.34.02.202452
PROJECT DB2INST1 T 2002-12-01-11.34.15.216740
SALES DB2INST1 T 2002-12-01-11.34.22.944956
STAFF DB2INST1 T 2002-12-01-11.34.04.665088
11 record(s) selected.
[db2inst1@buffy tmartin]$ db2 describe ORG
SQL0104N An unexpected token "ORG" was found following "DESCRIBE". Expected
tokens may include: "SELECT". SQLSTATE=42601
[db2inst1@buffy tmartin]$
--
Larry Menard
IBM Workstation Database (DB2) Performance Team
Defender of Geese and of All Things Natural
"Lennart Jonsson" <lel...@bonetmail.com> wrote in message
news:asd7b8$q3pds$1...@ID-167942.news.dfncis.de...
Then you walk the SQLDA to determine the column information.
It depends on the platform.. eg DB2 UDB for iSeries does support
DESCRIBE TABLE as an SQL statement:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/db2/rbafzmstdescrtb.htm#HDRDESCRTB
--
Karl Hanson
Try this
db2 describe select * from tablename
Trent