I wanted to update up to 8000 rows with INNER JOIN
.
I get an error:
Incorrect usage of UPDATE and LIMIT
It does work if I don't include the INNER JOIN
UPDATE `loop`
INNER JOIN data ON data.number = loop.number
SET robot = 1
WHERE `done` != 1 AND `robot` = 0
limit 8000
How do I get this to work? Example SQL would be great.