Created
September 18, 2015 17:59
-
-
Save yojance/54db77f5bfa5765bfeb6 to your computer and use it in GitHub Desktop.
Finding Expiring Discounts
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
SELECT post_id FROM wp_postmeta WHERE meta_key = 'expiry_date' AND meta_value <= '2015-09-18' AND meta_value != ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment