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 > System tables in DB2 UDB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-05, 06:01
milindpotdar milindpotdar is offline
Registered User
 
Join Date: Feb 2005
Posts: 6
Question System tables in DB2 UDB

Hi All,

Can any one tell me the query to find the name of the database table.
I know the description of a column,but I dont know the data is in which column and which table.
How can I do this ....
I went through all the system defined tables but I could'nt trace out.

In oracle we can do the same I guess with the the system table called either usercolumns or user objects....I dont know perfectly...but we can do in oracle..

How can this be done in DB2 UDB..

Very Urgent...
Query Expected from all DB2 Gurus...

Thanks in Advance
Milind
Reply With Quote
  #2 (permalink)  
Old 02-10-05, 06:56
matchum matchum is offline
Registered User
 
Join Date: Aug 2002
Location: Coventry, England
Posts: 4
Smile

Simple use the command:
db2 describe table sysibm.systables

The "name" and "creator" columns will link to the "tbname" and "tbcreator" columns of table sysibm.syscolumns.
Reply With Quote
  #3 (permalink)  
Old 02-10-05, 20:18
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
"Query Expected from all DB2 Gurus... " !! EXPECTED?? What gives you the right to expect a response from anyone?

It was after re-reading that that I deleted the one I had written.

James Campbell
Reply With Quote
  #4 (permalink)  
Old 02-10-05, 21:18
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
See the DB2 Catalog Tables in the appendix of SQL Reference Vol 1.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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