in reply to MySQL, DBIx::Recordset and is there a better way?
As long as you're using mysql, you can almost certainly do after the first insert:
$positions->{'league_id'} = $dbh->{mysql_insertid};
This is part of the DBD::mysql API.
Obligatory SPOPS plug: SPOPS takes care of this issue (auto-incrementing fields) for you transparently, even for different databases. /msg me for info if you're interested.
Chris
M-x auto-bs-mode
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: MySQL, DBIx::Recordset and is there a better way?
by jonjacobmoon (Pilgrim) on Jan 03, 2002 at 03:54 UTC | |
by lachoy (Parson) on Jan 03, 2002 at 07:42 UTC |