Help for this page

Select Code to Download


  1. 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";
    }
    
  2. 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;
    }
    
  3. or download this
    INSERT failed: 
    near ")": syntax error(1) at dbdimp.c line 271