X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9F73552952 for ; Wed, 4 May 2005 09:18:18 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43376-01 for ; Wed, 4 May 2005 12:18:11 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id E730C53CD1 for ; Wed, 4 May 2005 09:18:09 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so256820wra for ; Wed, 04 May 2005 05:18:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=O/+7i7XSRJJAFGssgAHPmtu5GmX+1ViqSh/g5JNd3VJulQonarZmhIXwAXbxkJNZx5k4u4aYaRvXISPaZWTGaYfUQMX/J/21FnUdmE8qwUfUAueQ+SWfId43oplgW4JpNSnpxM8g/+oqRxCw5OoIN947i24pXX7SJavewlZkleQ= Received: by 10.54.54.73 with SMTP id c73mr153848wra; Wed, 04 May 2005 05:18:12 -0700 (PDT) Received: by 10.54.4.50 with HTTP; Wed, 4 May 2005 05:18:12 -0700 (PDT) Message-ID: Date: Wed, 4 May 2005 09:18:12 -0300 From: Roni Warken Reply-To: Roni Warken To: pgsql-php@postgresql.org Subject: last value Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.398 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200505/6 X-Sequence-Number: 3120 I tried to search some thread that could help me, but didn't find anything (maybe because I didn't know how to search). I have a script that insert some values in a table. After this, I have to take the value of the primary key just inserted, and insert it in another table, all in the same script. How can I do that? Or if you have a better idea of how to get the last value and insert in the other table, please tell me. Thanks. --=20 Roni Warken