Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id A43F34760A5 for ; Mon, 20 May 2002 11:44:52 -0400 (EDT) Received: from mps4.plala.or.jp (mpsb-nat02.plala.or.jp [202.212.114.145]) by postgresql.org (Postfix) with ESMTP id CB09D4766B9 for ; Mon, 20 May 2002 11:30:44 -0400 (EDT) Received: from vip1600 ([218.47.116.139]) by mps4.plala.or.jp with ESMTP id <20020520153048.UOMX25329.mps4.plala.or.jp@vip1600>; Tue, 21 May 2002 00:30:48 +0900 Date: Tue, 21 May 2002 00:31:05 +0900 From: Masaru Sugawara To: Eckhard Hoeffner Subject: Re: Using LASTOID in one query Cc: pgsql-sql@postgresql.org In-Reply-To: <20020520140835.GA6211@fifoost.org> References: <20020520140835.GA6211@fifoost.org> Errors-To: rk73@sea.plala.or.jp Message-Id: <20020520235859.A95E.RK73@sea.plala.or.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.11 X-Archive-Number: 200205/204 X-Sequence-Number: 7839 On Mon, 20 May 2002 16:08:36 +0200 Eckhard Hoeffner wrote: > Is there a possibility to use the last OID from PHP within one > query? I have two tables like the following: You might find something interesting here. http://www.postgresql.org/idocs/index.php?plpgsql-statements.html 23.5.5. Obtaining result status Regards, Masaru Sugawara