Måske du kunne prøve noget som dette :
DELETE FROM mytable
WHERE id NOT IN (SELECT id FROM mytable ORDER by date DESC LIMIT 100)
Måske du kunne prøve noget som dette :
DELETE FROM mytable
WHERE id NOT IN (SELECT id FROM mytable ORDER by date DESC LIMIT 100)