In doing some keyword search, I found the following command:
select * from SYSIBM.SYSTABLES
The above command seem to also pull all the table names.
What is the difference between SYSIBM.SYSTABLES and SYSCAT.TABLES?
Are there other database types that can use SYSCAT.TABLES?
I'm trying to setup my code so that it can work with IBM UDB, Sybase, and Btrieve.
Do you know if SYSCAT.TABLES will work with Sybase or Btrieve?
Main Topics
Browse All Topics





by: ghp7000Posted on 2005-03-17 at 07:06:13ID: 13565499
from db2 command prompt:
db2 list tables for schema <schema name>
or
all table information is stored in syscat.tables view
db2 select * from syscat.tables where tabschema=<schema name> or simply
db2 select * from syscat.tables order by tabschema, tabname
similarly, allcolumn information is stored in syscat.columns
db2 select * from syscat.columns where tabname=<table name>