Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Eqivalent DB2 Query for DESC <TABLE NAME>

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ysuryawanshi_mcs
Warnings : 1

New User


Joined: 25 Mar 2006
Posts: 15
Location: pune(India)

PostPosted: Fri Mar 31, 2006 6:32 pm    Post subject: Eqivalent DB2 Query for DESC <TABLE NAME>
Reply with quote

HI
COULD ANYBODY TELL ME HOW TO DESCRIBE THE TABLE
eg.IN ORACLE
DESC <TABLE NAME> DESCRIBES THE TABLE
MEANS IT SHOWS ALL ATTRIBUTES WITH THEIR DATATYPES AND CONSTRAINSTS.
Back to top
View user's profile Send private message

martin9

Active User


Joined: 01 Mar 2006
Posts: 287
Location: Basel, Switzerland

PostPosted: Fri Mar 31, 2006 6:35 pm    Post subject:
Reply with quote

hy ysuryawanshi_mcs,

there is not a similar command,
but you can query the sysibm.syscolumns table
then you will get the same result...

martin9
Back to top
View user's profile Send private message
ragshere

New User


Joined: 20 Dec 2004
Posts: 70

PostPosted: Mon Apr 03, 2006 9:24 am    Post subject: Re: Eqivalent DB2 Query for DESC <TABLE NAME>
Reply with quote

Hi,
use DRAW <tabname> in QMF . it will give you the same result as you asked.




Thanks
Rags
Back to top
View user's profile Send private message
lakhs

New User


Joined: 19 Jan 2006
Posts: 1

PostPosted: Mon Apr 03, 2006 6:25 pm    Post subject:
Reply with quote

hi,

In QMF. write select * from <tabname> and press F9.. will give all the fields description..
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 287
Location: Basel, Switzerland

PostPosted: Mon Apr 03, 2006 9:32 pm    Post subject:
Reply with quote

hy ysuryawanshi_mcs,

go into the db2 administrator
and look at the table definition.
this you can find from ispf priamry option menu
with command g.d.2.a ok...

martin9
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us