Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us