Skip to content

Instantly share code, notes, and snippets.

@beanieboi
Created January 24, 2010 10:23
Show Gist options
  • Save beanieboi/285129 to your computer and use it in GitHub Desktop.
Save beanieboi/285129 to your computer and use it in GitHub Desktop.
DELETE FROM traffics WHERE created_at < (CURDATE()-30)
DELETE FROM traffics WHERE created_at < DATE_SUB(NOW(), INTERVAL 1 MONTH)
DELETE FROM traffics WHERE created_at < '2010-01-01 00:00:00'
nothing works :|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment