Created
December 11, 2014 17:45
-
-
Save stevenwoodson/105f2f37d479161a8622 to your computer and use it in GitHub Desktop.
MySQL Compare timestamps
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 if( TIMEDIFF('2014-12-11 11:00:00','2014-12-11 11:39:30') < 0, 'older','newer') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment