When I tried to delete from a table with right join is working, when I added a LIMIT
query fails :
DELETE la
FROM log_artim la
RIGHT JOIN corm_artim ca ON la.idCorm = ca.id
WHERE la.da <= '2022-02-02 02:02:02'
LIMIT 10
If I remove limit is working fine, if not I have an error :
MySQL server version for the right syntax to use near 'LIMIT 10' at line 5
Have an idea about hits error ?
3
Answers
As per MYSQL Documentation
If you want to use LIMIT clause, you should see below code;
The following query shall work for you using
LIMIT
clauseUpdate :
You can modify the above query as :