Say I have 20 records, and I want to update row 6 to row 10. I have tried this code but getting an error:
UPDATE db_scheduling.tbl_student
SET section ='a'
WHERE yrlevel = '1'
ORDER BY grade DESC
LIMIT 5
OFFSET 5;
It says I have error on the OFFSET part and I don't know if it works in UPDATE query. When I remove the OFFSET 5, it just updates the first 5 rows. Help please.