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 > equivalent of desc in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-10-06, 06:50
kunal kunal is offline
Registered User
 
Join Date: May 2006
Posts: 18
What is equivalant of desc table command of oracle in DB2?
Reply With Quote
  #2 (permalink)  
Old 08-10-06, 11:43
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
assuming that in oracle desc stands for describe

C:\Program Files\IBM\SQLLIB\BIN>db2 describe table eone.tdb_patch_dtl

Column Type Type
name schema name Length Scale Nulls
------------------------------ --------- ------------------ -------- ----- -----
TITLE SYSIBM VARCHAR 100 0 No
ACTION SYSIBM CHARACTER 1 0 No
APPLIEDON SYSIBM TIMESTAMP 10 0 No
REMARK SYSIBM VARCHAR 100 0 Yes

4 record(s) selected.


C:\Program Files\IBM\SQLLIB\BIN>db2 describe select * from eone.tdb_patch_dtl

SQLDA Information

sqldaid : SQLDA sqldabc: 896 sqln: 20 sqld: 4

Column Information

sqltype sqllen sqlname.data sqlname.length
-------------------- ------ ------------------------------ --------------
448 VARCHAR 100 TITLE 5
452 CHARACTER 1 ACTION 6
392 TIMESTAMP 26 APPLIEDON 9
449 VARCHAR 100 REMARK 6

Rahul Singh
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