delete a from user1_test a join(select id, user_name,count(*) from user1_test group by user_name having count(*)>1) as b on a.user_name = b.user_name where a.id>b.id; 更容易看懂吧
2017-09-01