If you want to update multiple rows using limit in MySQL you can use this construct:
UPDATE table_name SET name="test"
WHERE id IN (
SELECT id FROM (
SELECT id FROM table_name
ORDER BY id ASC
LIMIT 0, 10
) tmp
)
If you want to update multiple rows using limit in MySQL you can use this construct:
UPDATE table_name SET name="test"
WHERE id IN (
SELECT id FROM (
SELECT id FROM table_name
ORDER BY id ASC
LIMIT 0, 10
) tmp
)