34,588
社区成员
发帖
与我相关
我的任务
分享
with T1 as
(select * from TB where a=b);
select * from T1 where exists (select c from T1 group by c having count(1)>1)
select * from tb where a=b and b<>c
--or
select * from tb
except
select * from tb where a=b and b=c
select * from table1 where a=b and a<>c and b<>c