Help for this page

Select Code to Download


  1. or download this
          my $sth = $dbh->prepare( "select bar from foo where bar=baz" );
          $sth->execute;   # selects rows where 2 columns have same values
    # vs:
          my $sth = $dbh->prepare( "select bar from foo where bar=?" );
          $sth->execute( "baz" );   # selects rows where bar='baz' (3-lett
    +er literal)