Created
October 29, 2018 10:54
-
-
Save uptimizt/fb0a0a607b839d46680074e5350ab099 to your computer and use it in GitHub Desktop.
WordPress & MySQL. Удаляем комментарии добавленные более года назад
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- delete comments 1 year ago | |
DELETE c | |
FROM wp_comments as c | |
WHERE c.comment_date_gmt < DATE_SUB(NOW(),INTERVAL 1 YEAR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment