DB2 Query to retrieve all table names for a given schema

后端 未结 13 2197
难免孤独
难免孤独 2020-12-04 17:01

I\'m just looking for a simple query to select all the table names for a given schema.

For example, our DB has over 100 tables and I need to find any table that cont

13条回答
  •  执笔经年
    2020-12-04 17:21

    On my iSeries I have to run this command from iNavigator:

    select *
    from QSYS2.SYSTABLES
    where TABLE_SCHEMA
    like 'SCHEMA_NAME'
    and TYPE = 'T';
    

提交回复
热议问题