Sep
03
2008
Delete All Data In A PostgreSQL Table Using PGAdmin
Posted by alex in Insights at 5:18 PMOpen PGAdmin and connect to the database where you would like to remove all data from a certain table. Click the SQL (execute arbitrary SQL commands) button. Use the below syntax and all data will be removed.
truncate table table_name
Using truncate is much quicker than delete since it does not scan the table you are deleting.

Entries (RSS)