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.

 
Go Back  dBforums > Database Server Software > DB2 > how to print table definitions?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-07, 07:44
raysefo raysefo is offline
Registered User
 
Join Date: Dec 2006
Posts: 17
how to print table definitions?

Hi,

I m using db2 8.02 and i would like to know how to print a table definition?
Reply With Quote
  #2 (permalink)  
Old 02-02-07, 07:56
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
describe table tabname
or u need DDL??
db2look for that
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #3 (permalink)  
Old 02-03-07, 12:58
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
All that (db2look and describe) is based on the DB2 catalog views, e.g. SYSCAT.TABLES, SYSCAT.COLUMN, SYSCAT.DATATYPES, SYSCAT.TABCONTS etc. You can also use those views yourself to retrieve the information you want.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On