Created
August 22, 2017 13:28
-
-
Save gerep/f8ba5a46a6e6e239a0db8c98c2aa2062 to your computer and use it in GitHub Desktop.
PostgreSQL: yesterday, today, tomorrow
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 TIMESTAMP 'yesterday'; | |
select DATE 'yesterday'; | |
select TIMESTAMP 'today'; | |
select DATE 'today'; | |
select TIMESTAMP 'tomorrow'; | |
select DATE 'tomorrow'; | |
select TIME 'allballs'; | |
select now(); | |
select TIMESTAMP 'now'; | |
select DATE 'now'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment