mysql单表多字段去除重复数据

select * from test a where (a.B,a.C) in (select B,C from test group by B,C having count(*) > 1) ;

猜你喜欢

转载自blog.csdn.net/u011241618/article/details/89887354