22,300
社区成员




select * from T1 a
where not exists (select * from T2
where rtrim(A)=rtrim(a.A) OR rtrim(B)=rtrim(a.B) )
select * from T1 a
where not exists (select * from T2
where rtrim(A)=rtrim(a.A))
select * from T1 t
where not exists (select 1 from T2 where rtrim(A)=rtrim(t.A) and rtrim(B)=rtrim(t.B))
select * from jam_T1 t
where not exists (select T1.* from T1 , T2
where rtrim(T1.A)=rtrim(T2.A) and rtrim(T1.B)=rtrim(T2.B) and t.ID=t1.ID)
要类似这样.
select * from jam_T1
where not exists (select A.* from T1 , T2
where rtrim(T1.A)=rtrim(T2.A) and rtrim(T1.B)=rtrim(T2.B))
以上语句应该等于
select * from jam_T1 where 1<>1
false =not exists (select A.* from T1 , T2
where rtrim(T1.A)=rtrim(T2.A) and rtrim(T1.B)=rtrim(T2.B))
select * from jam_T1
where not exists (select A.* from T1 , T2
where rtrim(T1.A)=rtrim(T2.A) and rtrim(T1.B)=rtrim(T2.B))
以上语句应该等于
select * from jam_T1 where 1<>1
false =not exists (select A.* from T1 , T2
where rtrim(T1.A)=rtrim(T2.A) and rtrim(T1.B)=rtrim(T2.B))
select * from jam_T1
where not exists (
select 1 FROM T2
where rtrim(T2.A)=rtrim(T1.A) and rtrim(T2.B)=rtrim(T1.B)
)