Re: Open a Transaction

From: Joe <dev(at)freedomcircle(dot)net>
To: Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Open a Transaction
Date: 2007-02-08 16:56:07
Message-ID: 1170953767.697.44.camel@pampa
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Ezequias,

On Thu, 2007-02-08 at 14:50 -0200, Ezequias Rodrigues da Rocha wrote:
> Hi list,
>
> Could someone tell me what is wrong on this statement ?
>
> Start Transaction

The above should read

begin;

> delete from base.something
> where
> id in(
> 41503,
> 41504,
> 41505,
> 41506,
> 41507,
> 41508,
> 41509,
> 41510,
> 41511,
> 41512,
> 41513,
> 41514,
> 41515,
> 41516,
> 41517,
> 41518,
> 41519,
> 41520,
> 41521,
> 41522,
> 41523,
> 41524,
> 41525,
> 41526,
> 41527,
> 41528,

Remove the extra comma.

> )
> end;

Remove 'end'.

> Commit;

Joe

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Fichera 2007-02-08 16:58:18 Re: Open a Transaction
Previous Message Ezequias Rodrigues da Rocha 2007-02-08 16:50:05 Open a Transaction