赞
踩
desc student;
show create table student;
select column_name,data_type,column_comment,column_key,extra,character_maximum_length,is_nullable,column_default
from information_schema.columns
where table_schema = (select database()) and table_name = 'student' ;
说明: information_schema.columns
中还有其他的描述字段信息的列,可以根据需求添加。
select table_name,table_comment
from information_schema.tables
where table_schema = (select database()) and table_name = 'student' ;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。