【发布时间】:2017-11-24 03:11:57
【问题描述】:
我的 SQL 是:
delete from user
where cid in (select cid from user group by cid having count(cid) > 1)
and id not in (select min(id) from user group by cid having count(cid )>1)
提示错误信息:
表 'user' 被指定了两次,既作为 'DELETE' 的目标,又作为 单独的数据源
如何解决这个问题
【问题讨论】: