查询库表字段信息
Closed this issue · 2 comments
Xuxin19960702 commented
Description
想要查询库表的字段和字段的comment。
sql语句如下:
SELECT column_name, column_comment FROM information_schema.columns WHERE table_schema = 'your_database_name' AND table_name = 'your_table_name';
自己测试尝试了已有语法的组合,并未实现此功能,特地来请教大佬。
TommyLemon commented
数据库基础属性表已提供:
Table -> information_schema.tables
Column -> information_schema.columns
当然也可以在 Access 表里注册下:
table='tables', alias='Tables'
table='columns', alias='Columns'
可以在 APIAuto 网页抓包看到对 MySQL, PostgreSQL, Oracle, SQLServer 等主流数据库详细的 表、字段 属性等查询 JSON
#85 (comment)
Xuxin19960702 commented
懂了,感谢大佬!