根據表名查庫
SELECT table_schema FROM information_schema.TABLES WHERE table_name = '表名';
根據字段名查表
select table_schema,table_name from information_schema.columns where column_name = '字段名'
根據表名查庫
SELECT table_schema FROM information_schema.TABLES WHERE table_name = '表名';
根據字段名查表
select table_schema,table_name from information_schema.columns where column_name = '字段名'