» 您尚未登录:请 登录 | 注册 | 标签 | 帮助 | 小黑屋 |


发新话题
打印

[其他] 求问编程DX们一句SQL语句

delete from table as a where (select count(*) from table as b where b.username=a.username)>1


TOP

delete from table where username in (select username from (select username,count(*) from table group by username having count(*)>1))



TOP

发新话题
     
官方公众号及微博