I'm trying to delete all but the newest n records.

DELETE FROM tablename ORDER BY creation DESC LIMIT=n

This does the opposite of what I want. Is there some way to tell it to start the delete after n and delete all the remaining records?

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to