SQL多字段的查询重复记录

select * from table1 t where (select count(*) from table1 where column1=t.column1 AND column2=t.column2 and column3=t.column3)>1

猜你喜欢

转载自www.cnblogs.com/gonghui2016/p/11910568.html