1.查询某个数据库中所有表名称:
select table_name from information_schema.tables
where table_schema='具体数据库名称' and table_type='base table'
2.查询某一张表中的字段名和数据类型:
select distinct column_name,data_type
from information_schema.columns where table_name = '表名'