我写了这个查询:
delete from `test1` where id in (
SELECT id
FROM `test1`
GROUP BY m, n
HAVING count( id ) >1)
但是mysql给出了这个错误:
'您不能在 FROM 子句中指定目标表 'test1' 进行更新 '
为什么?我该如何解决?
我写了这个查询:
delete from `test1` where id in (
SELECT id
FROM `test1`
GROUP BY m, n
HAVING count( id ) >1)
但是mysql给出了这个错误:
'您不能在 FROM 子句中指定目标表 'test1' 进行更新 '
为什么?我该如何解决?