Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

miyagawa (1653)

  (email not shown publicly)
AOL IM: bulknews (Add Buddy, Send Message)

Journal of miyagawa (1653)

Tuesday September 03, 2002
03:41 AM


[ #7490 ]
DBIx::GeneratedKey - DBD portable way to fetch last inserted object id. Difficult case is Pgsql, which has object id even if there's a primary key on tables. Furthermore, oid can be fetched via $sth, SERIAL can be from SQL, which is sucky I/F for me. link
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I have this functionality working in SPOPS [] for sequences in Oracle and PostgreSQL; InterBase GENERATOR (almost exactly like a sequence); MySQL auto-increment; Sybase/MSSQL IDENTITY; SQLite inserted rowid. Fun!