好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

mysql - 查看表结构命令

-- 查看表结构
desc 表名;

-- 查看表中字段的结构信息
select table_name,column_name,column_comment from information_schema.columns where table_schema =‘表所在的库‘ and table_name = ‘要查的表‘;

-- 查看库里面表的结构信息
select table_name,table_comment from information_schema.tables where table_schema = ‘表所在的库‘ and table_name =‘要查的表‘;

-- 查看表的DDL语句
show create table 表名;

mysql - 查看表结构命令

标签:语句   ddl   table   命令   rom   for   inf   表结构   format   

查看更多关于mysql - 查看表结构命令的详细内容...

  阅读:34次