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='表名';

posted @ 2020-10-10 10:40  蟑螂恶霸的开发笔记  阅读(348)  评论(0编辑  收藏  举报