In DB2 Display a table's definition

后端 未结 11 1067
长情又很酷
长情又很酷 2021-02-04 03:35

Hello everybody I am learning DB2 and would like to know how to see a table\'s characteristics after I create one.

Similar to the EXPLAIN TABLE command in MySQL.

<
11条回答
  •  一向
    一向 (楼主)
    2021-02-04 03:50

    I just came across this query to describe a table in winsql

    select NAME,TBNAME,COLTYPE,LENGTH,REMARKS,SCALE from sysibm.syscolumns
    where tbcreator = 'Schema_name' and tbname='Table_name' ;
    

提交回复
热议问题