mysql 查询 A库中存在但B库中不存在的表名
1、假设有库A和库B
2、库A和库B都在同一台服务器上
3、要查询A库中存在,但是B库中不存在的表有哪些,即可执行以下sql语句
select * from information_schema.`TABLES` where table_schema = 'A' and table_name not in
(select table_name from information_schema.`TABLES` where table_schema = 'B' );