IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Eqivalent DB2 Query for DESC <TABLE NAME>


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts RC query -Time column CA Products 3
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top