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 and crows feet

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-04, 11:34
ksexton ksexton is offline
Registered User
 
Join Date: May 2002
Posts: 47
system tables and crows feet

I am running DB2 v.8 on AIX
1. What sql can I write to query the system tables to return an alphabetic listing of column names within a table ?
example:
select * from system_table where col_name like 'TRAN%' and
table_name like 'TRAN_TAB%'


2. In an ER diagram..the crows feet touching a table indicate that table holds the primary or foreign key???
Reply With Quote
  #2 (permalink)  
Old 02-16-04, 11:40
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: system tables and crows feet

Quote:
Originally posted by ksexton
I am running DB2 v.8 on AIX
1. What sql can I write to query the system tables to return an alphabetic listing of column names within a table ?
example:
select * from system_table where col_name like 'TRAN%' and
table_name like 'TRAN_TAB%'


2. In an ER diagram..the crows feet touching a table indicate that table holds the primary or foreign key???
1. SELECT * FROM SYSCAT.COLUMNS WHERE COLNAME ... AND TABNAME ...

2. I think in some notations the "crow foot" thing shows the "...-to-many" part of the relationship. It might be represented by a foreign key, yes.
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