Created
April 7, 2015 08:44
-
-
Save ajtrichards/56c9c3756b71537a16ff to your computer and use it in GitHub Desktop.
Unix Date SQL query
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 * FROM tablename WHERE date <= UNIX_TIMESTAMP(STR_TO_DATE('Apr 07 2015 09:00AM', '%M %e %Y %h:%i%p')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment