Skip to content

Instantly share code, notes, and snippets.

@namchuai
Created March 25, 2020 04:00
Show Gist options
  • Save namchuai/eacc5b4fd06dbd5e592dbd08260055bf to your computer and use it in GitHub Desktop.
Save namchuai/eacc5b4fd06dbd5e592dbd08260055bf to your computer and use it in GitHub Desktop.
Some postgresql command
# truncate the table and reset the index
truncate table <table_name> restart identity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment