in reply to Using MySQL table's default values upon insert
my $sth = $dbh->prepare(q[INSERT INTO foo (bar) VALUES(?)]; $sth->execute($bar);
If you use or die after each statement, you could just as well use the RaiseError => 1 option to DBI's connect.
|
|---|