1、查询数据库下的所有表名
select table_name from information_schema.tables where table_schema=‘数据库名’
2、查询数据库表下的所有列名
select column_name from information_schema.columns where table_schema=‘数据库名’ and table_name=‘表名’
mysql查询数据库表名,列名
最新推荐文章于 2024-03-16 15:51:32 发布