MySQL Show Datadictionary of tables

前端 未结 6 1193
悲&欢浪女
悲&欢浪女 2021-01-13 09:40

I\'d like to show DataDictionary for entire tables in database.

SHOW COLUMNS
FROM `MyDataBase`.`MyTables` 
WHERE IN ( SELECT TABLE_NAME 
           FROM info         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-01-13 10:31

    The shortest syntax is this:

    SHOW COLUMNS 
    FROM `MyDataBase`.`MyTables`;
    

    Full SHOW Syntax for columns:

    SHOW [FULL] COLUMNS 
    FROM tbl_name [FROM db_name] 
    [like_or_where]
    

提交回复
热议问题