Skip to content

Instantly share code, notes, and snippets.

@daleobrien
Last active August 29, 2015 13:56
Show Gist options
  • Save daleobrien/9043323 to your computer and use it in GitHub Desktop.
Save daleobrien/9043323 to your computer and use it in GitHub Desktop.
Generate a range of date for postgresql
SELECT GENERATE_SERIES('2001-02-16', '2001-03-03', '1 day'::INTERVAL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment