Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect("DBI::ODBC ... etc $dsn") 
        or die("Couldn't connect to $dsn: $DBI::errstr\n");
    
  2. or download this
    my $sth = $dbh->prepare("INSERT INTO table VALUES (value1, value2, val
    +ue3)");
    
  3. or download this
    my $sth = $dbh->prepare("INSERT INTO table VALUES (?, ?, ?)");
    
  4. or download this
    $sth->execute($foo, $bar, $baz);