Help for this page

Select Code to Download


  1. or download this
    my $query = $dbh->prepare
        ( "select id, name from user where name = ?" );
    $query->execute( $name_from_params );
    
  2. or download this
    my $query = $dbh->prepare
        ( "select id, name from user " .
          "where name = '$name_from_params'" );
    $query->execute();