From: Roni Warken <rwarken@gmail.com>
To: pgsql-php@postgresql.org
Subject: last value
Date: Wed, 4 May 2005 09:18:12 -0300
Message-ID: <d4af7dcf05050405184e0ea8e9@mail.gmail.com> (raw)
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.
--
Roni Warken
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rwarken@gmail.com
Subject: Re: last value
In-Reply-To: <d4af7dcf05050405184e0ea8e9@mail.gmail.com>
References: <d4af7dcf05050405184e0ea8e9@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