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: 290
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: 290
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 Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


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