How to view DB2 Table structure

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

How to view the table structure in DB2 database

19条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 01:27

    Generally it's easiest to use DESCRIBE.

    DESCRIBE TABLE MYSCHEMA.TABLE
    

    or

    DESCRIBE INDEXES FOR MYSCHEMA.TABLE SHOW DETAIL
    

    etc.

    See the documentation: DESCRIBE command

提交回复
热议问题