需求就是将表格中三个列都相同的行筛选出来,这三个列不同的行就去除。
假设表tableA有字段id,a,b,c,求abc三列数据相同行
select t1.id from (select id, case when t.a=t.b and t.b=t.c then 1 else 0 end as judge from tableA t) t1 where t1.judge=1