Re: last value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

  Create a Trigger for the first table for updating the primary key of the fist table into second table

Regards,
R.Muralidharan 

-----Original Message-----
From: pgsql-php-owner@xxxxxxxxxxxxxx
[mailto:pgsql-php-owner@xxxxxxxxxxxxxx]On Behalf Of Roni Warken
Sent: Wednesday, May 04, 2005 5:48 PM
To: pgsql-php@xxxxxxxxxxxxxx
Subject: [PHP] last value


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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux