By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,756 Members | 1,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,756 IT Pros & Developers. It's quick & easy.

View DB2 Table definitions in QMF

P: 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!
Apr 13 '06 #1
Share this Question
Share on Google+
2 Replies


P: 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

P: 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.