Skip to content

Instantly share code, notes, and snippets.

@fredjoseph
Created March 14, 2022 10:06
Show Gist options
  • Save fredjoseph/a223f13cb314297624c38a003faafcb8 to your computer and use it in GitHub Desktop.
Save fredjoseph/a223f13cb314297624c38a003faafcb8 to your computer and use it in GitHub Desktop.
SQL

Some useful commands

Search for data created in the last X hours/minutes...

select * from <table> where created_at > now() - interval '2 days 2 hours 20 minutes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment