1、查询数据库中所有表名
select table_name from information_schema.tables where table_schema='模式名称' and table_type='base table';
2、查询指定数据库中指定表的所有字段名column_name
select column_name from information_schema.columns where table_schema='模式名称' and table_name='users'
版权声明:本文为jyl_sh原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。