X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 558329DCD73 for ; Mon, 5 Dec 2005 20:33:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84023-05 for ; Mon, 5 Dec 2005 20:34:01 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by postgresql.org (Postfix) with ESMTP id 2EB559DCD2F for ; Mon, 5 Dec 2005 20:33:55 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 18so627355nzp for ; Mon, 05 Dec 2005 16:33:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GCub7miOun66GS8WrpQr0QJI0z6p7mxzW4CZoEiQjdIJkU+X0EZtp5svTk98y5fzLxkxZQqrLVDfyFBu+zNyQyLTmaNEaY1Rub5ntxuDjm8S6MzanvCSCVzxBmQaKoGPac95PFoATWFF5SynaejkJHTeO3OCCihyosw5Lhzw0vc= Received: by 10.64.184.19 with SMTP id h19mr2461365qbf; Mon, 05 Dec 2005 16:33:57 -0800 (PST) Received: by 10.65.180.14 with HTTP; Mon, 5 Dec 2005 16:33:57 -0800 (PST) Message-ID: Date: Mon, 5 Dec 2005 19:33:57 -0500 From: Jaime Casanova To: Matthew Peter Subject: Re: update question Cc: pgsql-sql@postgresql.org In-Reply-To: <20051205234123.82345.qmail@web35208.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051205234123.82345.qmail@web35208.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.169 required=5 tests=[AWL=0.169] X-Spam-Score: 0.169 X-Spam-Level: X-Archive-Number: 200512/32 X-Sequence-Number: 23574 On 12/5/05, Matthew Peter 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 wrote: > On 12/5/05, Matthew Peter wrote: > > I need a throw away value for an insert statement... example... > > > > update table > > set value =3D 1, value =3D 2, throw_away_value -- so i don't break the = query > > where id =3D 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 ;)