温馨提示×

mysql怎么查询表格列属性

小新
152
2021-03-22 08:03:19
栏目: 云计算

mysql怎么查询表格列属性

mysql查询表格列属性的示例代码:

示例

select column_name,column_comment,data_type

from information_schema.columns

where table_name='查询表名称' and table_schema='数据库名称'

语法格式:

desc 表名;

show columns from 表名;

describe 表名;

sql语句显示方法:

show create table 表名;


0