In DB2 Display a table's definition

后端 未结 11 1068
长情又很酷
长情又很酷 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 04:03

    All that metadata is held in the DB2 catalog tables in the SYSIBM 'schema'. It varies for the DB2/z mainframe product and the DB2/LUW distributed product but they're coming closer and closer with each release.

    IBM conveniently place all their manuals up on the publib site for the world to access. My area of expertise, DB2/z, has the pages you want here.

    There are a number of tables there that you'll need to reference:

    SYSTABLES        for table information.
    SYSINDEXES    \
    SYSINDEXPART   + for index information.
    SYSKEYS       /
    SYSCOLUMNS       for column information.
    

    The list of all information centers is here which should point you to the DB2/LUW version if that's your area of interest.

提交回复
热议问题