From: Jaime Casanova <systemguards@gmail.com>
To: Matthew Peter <survivedsushi@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: update question
Date: Mon, 5 Dec 2005 19:33:57 -0500
Message-ID: <c2d9e70e0512051633o1925aa47s675c1e8dd1893a1b@mail.gmail.com> (raw)
In-Reply-To: <20051205234123.82345.qmail@web35208.mail.mud.yahoo.com>
References: <c2d9e70e0512051508y2a9c4addj5c7927f3f4052775@mail.gmail.com>
<20051205234123.82345.qmail@web35208.mail.mud.yahoo.com>
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 ;)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: systemguards@gmail.com, survivedsushi@yahoo.com
Subject: Re: update question
In-Reply-To: <c2d9e70e0512051633o1925aa47s675c1e8dd1893a1b@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox