Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

viewing design of the database

Status
Not open for further replies.

portagal

Programmer
Jul 28, 2004
32
CA
Hi,
I have cataloged a remote database, and now i need to know the overall design of the database (table schemas, the relation between tables and views,...) Is there any way to do this other than going to control center and selecting "show related" on context menu of specific table/view.

thank you all in advance
 
select substr(tabname,1,20) table_name,substr(constname,1,20) fk_name,fk_colnames,substr(REFTABNAME,1,12) parent_table,substr(refkeyname,1,20) parent_pk
from syscat.references
where tabname like 'TABLE_NAME'
 
Thanks rbod for your help, but for this query i get 0 record selected for tables in my db. Is there any resources online that i can read and find out more about syscat.references.

Thank u,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top