my SQL is:
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)
Prompt error message:
Table 'user' is specified twice, both as a target for 'DELETE' and as a separate source for data
How to fix this