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 > is there sq lstatement to find type and size of table column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-10, 17:27
josemourinho josemourinho is offline
Registered User
 
Join Date: Aug 2010
Posts: 19
is there sq lstatement to find type and size of table column

hello

i want to ask is there some way to find the type and the size of table column ?

please help
Reply With Quote
  #2 (permalink)  
Old 11-08-10, 17:45
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Syscat.columns
Reply With Quote
  #3 (permalink)  
Old 11-09-10, 09:56
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Let's not forget that you might want to download "SQL Reference Vol.1.pdf" you can find all kind of useful info in there
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #4 (permalink)  
Old 11-09-10, 10:04
Rajesh1203 Rajesh1203 is offline
Registered User
 
Join Date: Aug 2010
Posts: 38
Quote:
Originally Posted by josemourinho View Post
hello

i want to ask is there some way to find the type and the size of table column ?

please help

if you know the table do a describe:

describe select * from TABLE_NAME;
Reply With Quote
  #5 (permalink)  
Old 11-09-10, 10:39
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
really?

wouldn't be "describe table tabname"
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
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