我正在尝试从我的数据库中删除重复数据。我在这里找到了一个很好的例子,说明如何在 oracle 数据库上执行此操作。
该答案的底部查询(仅选择重复的行)在 MySQL 中有效,但删除查询(见下文)不...
"DELETE FROM studios as a
WHERE a.id >
ANY (SELECT b.id
FROM studios as b
WHERE a.name = b.name
AND a.email = b.email
)"
我得到的错误是:
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near 'a
WHERE a.id >
ANY (SELECT b.id
FROM studios as b
' at line 1