Skip to main content
added 19 characters in body
Source Link
chaos
  • 123.5k
  • 33
  • 305
  • 310
DELETE FROM `table`
WHERE (whatever criteria)
ORDER BY `id`
LIMIT 1000

Wash, rinse, repeat until zero rows affected. Maybe in a script that sleeps for a second or three between iterations.

DELETE FROM `table`
WHERE (whatever criteria)
LIMIT 1000

Wash, rinse, repeat until zero rows affected. Maybe in a script that sleeps for a second or three between iterations.

DELETE FROM `table`
WHERE (whatever criteria)
ORDER BY `id`
LIMIT 1000

Wash, rinse, repeat until zero rows affected. Maybe in a script that sleeps for a second or three between iterations.

Source Link
chaos
  • 123.5k
  • 33
  • 305
  • 310

DELETE FROM `table`
WHERE (whatever criteria)
LIMIT 1000

Wash, rinse, repeat until zero rows affected. Maybe in a script that sleeps for a second or three between iterations.