mysql查询表结构的语句
2020-03-30 本文已影响0人
浩克啊12138
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%';