TRUNCATE table example in PostgreSQL.

In aΒ previous blog post, I selected records fromΒ the staging_assets table to insert into their respective table, depending on the type of asset. Let’s empty out this table, yet keep the structure in place for future uploads, using the TRUNCATE command.

(more…)