using left join can resolve your problems.
such as .
have 2 table : T1 ,T2 ,now want to get the all of t1 data not in t2old :
select t1.* from t1 where t1.id not in ( select t2.id from t2)new:
select t1.* from t1 left join t2 on t1.id=t2.id where t2.id is null
such as .
have 2 table : T1 ,T2 ,now want to get the all of t1 data not in t2old :
select t1.* from t1 where t1.id not in ( select t2.id from t2)new:
select t1.* from t1 left join t2 on t1.id=t2.id where t2.id is null
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货