Last active
December 15, 2015 08:59
-
-
Save haio/5234792 to your computer and use it in GitHub Desktop.
SQL functions
This file contains hidden or 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
COALESCE ---> COALESCE(column, default) | |
INTERVAL ---> DATE(time_column) + INTERVAL 1 DAY | |
TIMESTAMPDIFF ---> TIMESTAMPDIFF(SECOND, '2012-12-12: 12:12:12', '2013-13-13 13:13:13') --DAY/MINUTE/HOUR/YEAR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment