Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 197C52E2D94 for ; Wed, 16 Jan 2008 10:41:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 32191-01-7 for ; Wed, 16 Jan 2008 10:41:27 -0400 (AST) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by postgresql.org (Postfix) with ESMTP id B6F862E4047 for ; Wed, 16 Jan 2008 10:30:21 -0400 (AST) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m0GEUGrg078240; Wed, 16 Jan 2008 16:30:16 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m0GEUGER078239; Wed, 16 Jan 2008 16:30:16 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-sql@postgresql.org Subject: Re: Update PK Violation Date: Wed, 16 Jan 2008 16:30:14 +0200 User-Agent: KMail/1.9.7 Cc: Franklin Haut References: <478D1FB5.2070003@gmail.com> In-Reply-To: <478D1FB5.2070003@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200801161630.15623.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/140 X-Sequence-Number: 29993 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 15 January 2008 23:03:49 =CE=BF/=CE=B7 Fra= nklin Haut =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hi all, >=20 > i have a problem with one update sentence sql. >=20 A simple way i use: foodb=3D# update temp set num =3D num*1000 where num >=3D 5; foodb=3D# insert into temp values (5, 'NOT'); foodb=3D# update temp set num =3D 1 + num/1000 where num >=3D 6; =2D-=20 Achilleas Mantzios