Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save florianmartens/a6a49e50aa1ea946f85cc114d71b15db to your computer and use it in GitHub Desktop.
Save florianmartens/a6a49e50aa1ea946f85cc114d71b15db to your computer and use it in GitHub Desktop.
# Resetting the database without deleting it
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
# Deleting all entries from a table
DELETE FROM table_name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment