Drop ORDER BY + LIMIT , or JOIN , and all that peaches. Combine them and I seem to release the Kraken. Who can shed light?
DELETE table1 AS t1 FROM table1 AS t1 LEFT JOIN table2 AS t2 ON t1.id = t2.id WHERE t2.field = 'something' ORDER BY t1.id DESC LIMIT 5
( Delete using aliases )
I also tried this without aliases and dropped WHERE , but to no avail. Always the syntax error is " near 'ORDER BY... ".
mysql delete-row
TheDeadMedic Jul 29 '11 at 10:19 2011-07-29 22:19
source share