获取数据库里所有表
SELECT TABLE_NAME,TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='数据库名'
获取表里所有字段
select column_name from information_schema.columns where table_schema='数据库名' and table_name='表名'