Created
September 18, 2018 10:40
-
-
Save ichux/e56e9f7fceeac18ff8e72ff669785089 to your computer and use it in GitHub Desktop.
add and subtract Postgres dates
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 date '2018-09-18' - date '1990-11-22' AS difference; | |
select date '1990-11-22' + 10162 AS difference; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment