mysql查看表字段属性的方法:
示例:
select column_name,column_comment,data_typefrom information_schema.columns
where table_name='查询表名称' and table_schema='数据库名称'
语法格式:
desc 表名;show columns from 表名;
describe 表名;
sql语句显示方法:
show create table 表名;
亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>
推荐阅读:sql怎么查看表字段属性