Created
September 1, 2017 20:41
-
-
Save rgwozdz/271d424f2149f676d0254cecfcc8a2a0 to your computer and use it in GitHub Desktop.
Compare timestamp to date in Postgres
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
| SELECT * | |
| FROM table | |
| WHERE update_date >= '2013-05-03'::date | |
| AND update_date < ('2013-05-03'::date + '1 day'::interval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment