How to view DB2 Table structure

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

How to view the table structure in DB2 database

19条回答
  •  春和景丽
    2020-12-24 01:39

    1.use db2 describe table

      db2 describe table tabschema.tabname
    

    2.use db2 describe output

      db2 "describe select * from tabschema.tabname"
    

    3.use db2look utility

      db2look -d dbname -e -t tabname
    

    4.find rows in db2 syscat

      db2 "Select * from syscat.columns wher tabname='' and tabschema =''"
    

提交回复
热议问题