Skip to content

Instantly share code, notes, and snippets.

@rgwozdz
Created September 1, 2017 20:41
Show Gist options
  • Select an option

  • Save rgwozdz/271d424f2149f676d0254cecfcc8a2a0 to your computer and use it in GitHub Desktop.

Select an option

Save rgwozdz/271d424f2149f676d0254cecfcc8a2a0 to your computer and use it in GitHub Desktop.
Compare timestamp to date in Postgres
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