Describe all tables in a database

This is a discussion on Describe all tables in a database within the db2-udb forums in Other Databases category; I use the following describe command to obtain the information from a single table: Describe Select * from employee How would I gather the same information from ALL tables with a single command? Thanks,...

Go Back   Database Forum > Other Databases > db2-udb

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-10-2006, 10:21 AM
Default Describe all tables in a database

I use the following describe command to obtain the information from a single table:

Describe Select * from employee

How would I gather the same information from ALL tables with a single command?

Thanks,
Reply With Quote
  #2  
Old 01-10-2006, 10:24 AM
Default Re: Describe all tables in a database

stevechism-at-gmail.com wrote:

> I use the following describe command to obtain the information from a single table:
>
> Describe Select * from employee
>
> How would I gather the same information from ALL tables with a single command?
>
> Thanks,

Hi,

Actually, you shouldnt have to do the select. Here is how I typically
use describe:

describe table employee

To answer your questions, you could use the db2look command with the -e
option (I usually get annoyed by the default postscript output when -e
is not used).

Regards,
Kenneth
Reply With Quote
  #3  
Old 01-10-2006, 10:58 AM
Default Re: Describe all tables in a database

In article
<1454710998.1136902878374.JavaMail.wassrvr@ltsgwas0 07.sby.ibm.com>,
(stevechism-at-gmail.com) says...
> I use the following describe command to obtain the information from a single table:
>
> Describe Select * from employee
>
> How would I gather the same information from ALL tables with a single command?
>
> Thanks,
>


Query the SYSCAT.COLUMNS table
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 05:46 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.