Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Empty Table



psql> TRUNCATE TABLE <tablename>;

if you have too many tables , generate the above commands
by using a query on tables information schema table.
hope it helps.

On 3/29/07, ezequias(at)fastcon(dot)com(dot)br <ezequias(at)fastcon(dot)com(dot)br> wrote:
Hi list,

I have many tables with many constraints and I would like to empty all my
tables.

There is any simple way to do it ?

I have pgAdmin here but not psql.

Any help would be glad.

Regards
Ezequias


--
Ezequias Rodrigues da Rocha

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group