首先使用该语句【注意一定要加分号】
如果数据库被你关了,就在搜索框中输入“服务”,将数据库开启
show databases;//显示已建的所有的数据库名
然后选择要显示的数据库名
use '数据库名' go;//我使用的是use studb go;
然后在输入
select column_name,data_type,column_comment from information_schema.columns where table_name = '数据表名' and table_schema = '数据库名';
//我使用的是select column_name,data_type,column_comment from information_schema.columns where table_name = 'student' and table_schema = 'studb';