mysql 查看表中字段的数据类型

版权声明:本文为博主原创文章,未经博主允许下请随便转载。 https://blog.csdn.net/god_wen/article/details/79271032

已查询结果显示
desc 表名;
show columns from 表名;
describe 表名;

以sql语句显示
show create table 表名;

还可以通过专门的管理表来查看

use information_schema
select * from columns where table_name=’表名’;

猜你喜欢

转载自blog.csdn.net/god_wen/article/details/79271032