Help for this page

Select Code to Download


  1. or download this
    # BAD!
    $dbh->do("
    ...
                 '$fields[2]'
              )
    ");
    
  2. or download this
    # BAD!
    my $sth = $dbh->prepare("
    ...
    ");
    
    $sth->execute();
    
  3. or download this
    $dbh->do(
       ("
    ...
       undef,
       @fields,
    );
    
  4. or download this
    my $sth = $dbh->prepare("
       INSERT INTO Table (
    ...
    ");
    
    $sth->execute(@fields);