天天看點

mysql指令檢視表結構及注釋

使用如下指令:

select table_schema,table_name,column_name,column_type,column_key,is_nullable,column_default,column_comment,character_set_name

from information_schema.columns where table_schema='庫名' and table_name='表明';

快捷方式:

desc 表名;    無注釋顯示

轉載于:https://www.cnblogs.com/jimmyshan-study/p/10775714.html