mysql 查看表中字段的数据类型
已查询结果显示desc 表名;show columns from 表名;describe 表名;以sql语句显示show create table 表名;还可以通过专门的管理表来查看use information_schemaselect * from columns where table_name=’表名’;
·
查询结果显示
desc 表名;
show columns from 表名;
describe 表名;
sql语句显示
show create table 表名;
还可以通过专门的管理表来查看
use information_schema
select * from columns where table_name='表名';
更多推荐
已为社区贡献2条内容
所有评论(0)