【发布时间】:2020-12-17 10:36:18
【问题描述】:
sql1: select * from t1 where not exists (select a from t2 where t2.a = t1.a);
sql2: select * from t1 where t1.a not in (select a from t2 where t2.a is not null);
我觉得sql1和sql2一样,都会改写成anti join吧?
【问题讨论】:
-
mysql 还是 oracle?请仅标记您正在使用的一个数据库。
-
我认为mysql和oracle都有相同的操作。
标签: database oracle url-rewriting cost-based-optimizer