Thread Autocommit oder commit? (4 answers)
Opened by Kuerbis at 2014-09-11 16:06

Kuerbis
 2014-09-11 16:06
#177221 #177221
User since
2011-03-20
938 Artikel
BenutzerIn
[default_avatar]
Hallo,

gibt es hier einen Grund, warum ich AutoCommit ausschalten und ein $dbh->commit; anhängen sollte?

Code (perl): (dl )
1
2
3
4
$dbh = DBI->connect($dsn, $user, $passwd,{ RaiseError => 1, AutoCommit => 1 });

$sth = $dbh->prepare( "UPDATE $table SET value = ? WHERE key = ?" );
$sth->execute( $value, 3 );

View full thread Autocommit oder commit?