Database handle are fully encapsulated objects. Transactions from one database handle do not cross over or leak with one another.
$rc = $dbh->do($statement) || die $dbh->errstr; $rc = $dbh->do($statement, \%attr) ||die $dbh->errstr; $rv = $dbh->do($statement, \%attr,@bind_values) || ... my $rows =$dbh->do(q{ DELETE FROM table },undef,'DONE') || die $dbh->errstr; $art_ref =$dbh->selectall_arrayref($statement); $ary_ref = $dbh->selectall_arrayref($statement, \%attr); $ary_ref = $dbh->selectall_arrayref($statement, \%attr, @bind_values); $sth = $dbh->prepare($statement) || die $dbh->errstr; $sth = $dbh->prepare($statement, \%attr) ||die $dbh->errstr; my $sth =$dbh->@prepare("SELECT * from mytable where name like ?"); $sth->bind_param(1, 'J%'); $sth = $dbh->prepare_cached($statement) || die $dbh->errstr; $sth = $dbh->prepare_cached($statement, \%attr) || die $dbh->errstr;
すげー、相当頑張らねーと。。。