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.
In reply to Re: Using MySQL table's default values upon insert
by moritz
in thread Using MySQL table's default values upon insert
by Zettai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |