In DB2 Display a table's definition

后端 未结 11 1060
长情又很酷
长情又很酷 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 04:06

    you can use the below command to see the complete characteristics of DB

    db2look -d -u walid -e -o
    

    you can use the below command to see the complete characteristics of Schema

     db2look -d  -u walid -z  -e -o
    

    you can use the below command to see the complete characteristics of table

    db2look -d  -u walid -z  -t -e -o
    

    you can also visit the below link for more details. https://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=%2Fcom.ibm.db2.udb.admin.doc%2Fdoc%2Fr0002051.htm

    提交回复
    热议问题