因此尝试使用“ SELECT *”而不是“ DELETE FROM”查询,并且效果很好.
DELETE FROM `80dage_garmin_track` t1 WHERE EXISTS (
SELECT 1
FROM `80dage_garmin_track` t2
WHERE t1.Length = t2.Length
AND t1.Time = t2.Time
AND t1.idgarmin_track > t2.idgarmin_track
)
MysqL错误:
.#1064-您的sql语法有误;检查与您的MysqL服务器版本相对应的手册以获取正确的语法,以在“ t1 WHERE EXISTS”(第1行的80dage_garmin_track` t2 WHERE t1.Le”附近使用)附近使用
最佳答案