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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System table name

Status
Not open for further replies.

never

Programmer
Dec 2, 2001
18
GB
Hi all,
sorry to disturbing all but...Can somebody to help me!!
I need write script for DB2 but I haven't access now to this DB that I look for this trivial problem.
So..I need find out name of system table where is stored names of all schema. In the concrete i need show all name of tables in some schema.

THX a lot
Never
 
Try this in SQL:

SELECT SYSTEM_TABLE_NAME, SYSTEM_TABLE_SCHEMA
FROM SYSTABLES

SYSTABLES is a view supplied by IBM. Its library is SYSIBM.

Hope this helps.

vtj
 
You can get schemas and associated tablenames with this SQL.

SELECT tabschema, tabname
FROM sysstat.tables


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top