Help for this page

Select Code to Download


  1. or download this
    ## Badd
    my $sth = $dbh->prepare('SELECT * FROM foo WHERE bar = ?');
    ...
    ## Good
    my $sth = $dbh->prepare("SELECT * FROM foo WHERE bar = '?'");
    $sth->execute($baz)