- or download this
# "connect" to sqlite database file, creating it if it doesnt exist
my $dbh = DBI->connect("dbi:SQLite:dbname=testing.sqlite","","");
...
if (!defined $status) {
die "CREATE failed";
}
- or download this
# build/execute an INSERT statement from array of field values
# note: all of these values are already DBI quoted
...
if (!defined $status) {
die "INSERT failed: ", $dbh->errstr;
}
- or download this
INSERT failed:
near ")": syntax error(1) at dbdimp.c line 271