show all tables in DB2 using the LIST command

后端 未结 6 652
天涯浪人
天涯浪人 2021-01-31 09:26

This is embarrassing, but I can\'t seem to find a way to list the names of the tables in our DB2 database. Here is what I tried:

root@VO11555:~# su - db2inst1
ro         


        
6条回答
  •  再見小時候
    2021-01-31 10:04

    I'm using db2 7.1 and SQuirrel. This is the only query that worked for me.

    select * from SYSIBM.tables where table_schema = 'my_schema' and table_type = 'BASE TABLE';
    

提交回复
热议问题