数据表去重提示 内存不足,老师指点指点
DELETE FROM cmf_zone_post WHERE id in(
SELECT * FROM (
SELECT id FROM cmf_zone_post
WHERE id not in (
SELECT min(id)
from cmf_zone_post
GROUP BY name
)
)z
)
以上是语句
回复: [Err] 5 - Out of memory (Needed 4192032 bytes)
现在服务器内存16G的内存,改表有超过5000w条数据,老师指点指点指点,怎样可以把重复的保留一条,多余的删除,谢谢