Search Postgresql Archives
Getting Primary Key Value After Insert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I'm inserting data into two tables, the second table has a forigen key that
points to the primary key of the first table.
After I insert a row into the first table, I need to take the primary key
value created in "SERIAL" column and store it so I can insert it as the
forigen key value on the second table.
What is the best way to get the value of the primary key ( SERIAL data
type ) of the row I inserted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]
[Postgresql Jobs]
[Postgresql Admin]
[Postgresql Performance]
[Linux Clusters]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[PHP Books]
[PHP Databases]
[Postgresql & PHP]
[Yosemite]