create table wholetable as
(
select t1.column1 , t1.column2 from t1
minus
select t2.column1, t2.column2 from t2
)
我可以修改此查询以使用NOT EXISTS
代替MINUS
吗?
答案 0 :(得分:2)
是的,你可以:
create table wholetable as
select t1.column1, t1.column2
from t1
where not exists (select *
from t2
where t2.column1 = t1.column1
and t2.column2 = t1.column2)