Skip to content

Instantly share code, notes, and snippets.

@dzhaugasharov
Last active April 6, 2020 08:03
Show Gist options
  • Save dzhaugasharov/fcc163bb8e5e057674496a3a6992eb80 to your computer and use it in GitHub Desktop.
Save dzhaugasharov/fcc163bb8e5e057674496a3a6992eb80 to your computer and use it in GitHub Desktop.
Cheat Sheet

Cheat Sheet

PostgreSQL

  • Dates, Times and Timestamps in PostgreSQL * adding/subtracting time
SELECT now()::time - INTERVAL '10 min';
SELECT now() + INTERVAL '10 min';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment