| From: | "Rajesh Kumar Mallah" <mallah(dot)rajesh(at)gmail(dot)com> |
|---|---|
| To: | "ezequias(at)fastcon(dot)com(dot)br" <ezequias(at)fastcon(dot)com(dot)br> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Empty Table |
| Date: | 2007-03-29 18:16:31 |
| Message-ID: | a97c77030703291116p2488c816v42858b658c92bf09@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | ezequias | 2007-03-29 18:25:01 | Empty Table |
| Previous Message | Rodrigo De León | 2007-03-29 15:56:33 | Re: Temp tbl Vs. View |