话说这两个 sql 为啥和我预想的不太一样
資深大佬 : luxinfl 5
select * from t1 where not exists (select 1 from t2 where t1.name = t2.name) select * from t1 where exists (select 1 from t2 where t1.name != t2.name)
我本意是找 t1 比 t2 多的数据,结果把 t1 的所有东西都返回了
大佬有話說 (24)