sql语句在MySQL获取数据库里的所有表名:
select table_name from information_schema.tables where table_schema='数据库名'
sql语句在MySQL获取数据库表的所有列名:
select column_name from information_schema.columns where table_schema='数据库名' and table_name='表名';
sql语句在MySQL获取数据库里的所有表名:
select table_name from information_schema.tables where table_schema='数据库名'
sql语句在MySQL获取数据库表的所有列名:
select column_name from information_schema.columns where table_schema='数据库名' and table_name='表名';