max / sap DB getting the primary key from an insert DBD::ODBC
From: xander (xander_steele_at_yahoo.com)
Date: 01/30/04
- Next message: Michal Kurowski: "Re: Suppressing DBD Error messages"
- Previous message: Jeff Holt: "RE: :Oracle - blocking or non-blocking OCI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jan 2004 09:01:08 -0800
How would I use perl DBI to get the primary key, a maxdb 'sequence'
field from my table on insert. I need an accurate key value returned
to set up a number of 1:M foreign key table relationships immediately
after the initial insert.
I dont want to do something like 'select max(serial_field)' as
potentially thousands of users may be inserting records at the same
time. I need confidence that the key is applicable to a specific
$sth->execute.
regards
- Next message: Michal Kurowski: "Re: Suppressing DBD Error messages"
- Previous message: Jeff Holt: "RE: :Oracle - blocking or non-blocking OCI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|