How to view DB2 Table structure

后端 未结 19 2513
深忆病人
深忆病人 2020-12-24 00:59

How to view the table structure in DB2 database

19条回答
  •  青春惊慌失措
    2020-12-24 01:28

    to get all tables: (You may want to restrict schema to your schema)

    select * from syscat.tables
    

    to get all columns: (where tabname = your_tabname)

    select * from syscat.columns
    

提交回复
热议问题