Skip to content

Instantly share code, notes, and snippets.

@lbbedendo
Created October 19, 2023 17:58
Show Gist options
  • Save lbbedendo/449ff46d3baa7838b99ec513c2de92a7 to your computer and use it in GitHub Desktop.
Save lbbedendo/449ff46d3baa7838b99ec513c2de92a7 to your computer and use it in GitHub Desktop.
Select last value of PostgreSQL sequence
SELECT last_value FROM sequence_name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment