note
lachoy
<p>...and using the DBI func method will pull out the value for you after an insert:</p>
<code>
$dbh->do( q{
CREATE TABLE foo (
id integer not null primary key,
name varchar(20)
)
});
$dbh->do( "INSERT INTO foo ( name ) VALUES ( 'bar' )" );
print "ID of record: ", $dbh->func( 'last_insert_rowid' ), "\n";
</code>
<div class="pmsig"><div class="pmsig-27402">
<p>Chris<br>
M-x auto-bs-mode</p>
</div><div>
317735
317764