Re: update question - Mailing list pgsql-sql

From Jaime Casanova
Subject Re: update question
Date
Msg-id c2d9e70e0512051633o1925aa47s675c1e8dd1893a1b@mail.gmail.com
Whole thread Raw
In response to Re: update question  (Matthew Peter <survivedsushi@yahoo.com>)
List pgsql-sql
On 12/5/05, Matthew Peter <survivedsushi@yahoo.com> wrote:
> it's in a loop so there's an extra comma at the end so i was thinking i
> could put in a throw away value to keep the update from breaking if there's
> an additional comma
>
> Jaime Casanova <systemguards@gmail.com> wrote:
> On 12/5/05, Matthew Peter wrote:
> > I need a throw away value for an insert statement... example...
> >
> > update table
> > set value = 1, value = 2, throw_away_value -- so i don't break the query
> > where id = 1;
> >
> > Thanks
> >
>

i guess you are constructing the query in a string and EXECUTEd it...
if that is the case review your logic...




--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)


pgsql-sql by date:

Previous
From: Matthew Peter
Date:
Subject: Re: update question
Next
From: Erik Sigra
Date:
Subject: Re: Database query: Notification about change?