468,257 Members | 1,410 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

View DB2 Table definitions in QMF

How can I view the DB2 table definitions (column name, data type, constraints etc) using QMF? I tried 'DESCRIBE TABLE' but didn't work in QMF.

Please help!
Apr 13 '06 #1
2 13824
db2guy
1
How can I view the DB2 table definitions (column name, data type, constraints etc) using QMF? I tried 'DESCRIBE TABLE' but didn't work in QMF.

Please help!
type the fully qualified table name at the command line and press PF6.
Oct 27 '06 #2
I don't know if this will provide all the information you want, but this is what I use.

SELECT *
FROM SYSIBM.SYSTABLES TAB
,SYSIBM.SYSCOLUMNS COL
WHERE TAB.CREATOR = COL.TBCREATOR
AND TAB.CREATOR = 'xxxx'
AND TAB.NAME = 'xxxxxxxxxxxxx'
AND TAB.NAME = COL.TBNAME
AND TAB.TYPE = 'V' ( OR 'T' )
ORDER BY 1,2
Oct 30 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Forgone Conclusion | last post: by
2 posts views Thread by Sathyaram Sannasi | last post: by
2 posts views Thread by Justin | last post: by
20 posts views Thread by raptor | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.