How to view DB2 Table structure

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

How to view the table structure in DB2 database

19条回答
  •  不思量自难忘°
    2020-12-24 01:37

    Use the below to check the table description for a single table

    DESCRIBE TABLE Schema Name.Table Name
    

    join the below tables to check the table description for a multiple tables, join with the table id syscat.tables and syscat.columns

    You can also check the details of indexes on the table using the below command describe indexes for table . show detail

提交回复
热议问题