Mysql获取表属性值的方法查询数据表中所有字段的属性select * from infORMation_schema.columnswhere table_schema= '数据库库名' and table_name
Mysql获取表属性值的方法
查询数据表中所有字段的属性
select * from infORMation_schema.columns
where table_schema= '数据库库名' and table_name = '表名'
查询数据库中所有字段的属性
select * from information_schema.columns
where table_schema= '数据库库名'
查询数据库中特定列条件字段的属性
select table_schema,table_name,column_name,column_type,column_comment
from information_schema.columns
where TABLE_SCHEMA='数据库名' and column_name = '字段名';
--结束END--
本文标题: mysql怎么获取表中属性值
本文链接: https://www.lsjlt.com/news/114025.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0