select table_name,column_name,column_comment from information_schema.columns where table_schema ='表所在的库' and table_name = '要查看的表名' ;
desc 表名;
根据条件查看表名
show tables like 'course%';
select table_name,column_name,column_comment from information_schema.columns where table_schema ='表所在的库' and table_name = '要查看的表名' ;
desc 表名;
根据条件查看表名
show tables like 'course%';
本文标题:mysql查询表结构的语句
本文链接:https://www.haomeiwen.com/subject/afumuhtx.html
网友评论