Help for this page

Select Code to Download


  1. or download this
    With most drivers, placeholders can't be used for any element of 
    a statement that would prevent the database server from validating 
    ...
    
      "SELECT name, age FROM ?"         # wrong (will probably fail)
      "SELECT name, ?   FROM people"    # wrong (but may not 'fail')
    
  2. or download this
    $sth = $dbh->prepare(qq~select $rating from FanRatings where Title = ?
    +~) or die $DBI::errstr;
    $sth->execute($filename) or die $DBI::errstr;