Skip to content

Instantly share code, notes, and snippets.

@uptimizt
Created October 29, 2018 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uptimizt/de70ad807346d16aa87b6e0388244154 to your computer and use it in GitHub Desktop.
Save uptimizt/de70ad807346d16aa87b6e0388244154 to your computer and use it in GitHub Desktop.
WordPress - Комменты более года
-- WordPress - Comments 1 year ago
SELECT *
FROM wp_comments as c
WHERE c.comment_date_gmt < DATE_SUB(NOW(),INTERVAL 1 YEAR)
ORDER BY c.comment_date_gmt DESC
LIMIT 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment