Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare(qq{SELECT st8a, st8b FROM sample WHERE id=$id}
    +);
    $sth->execute() || die "Error executing query: " . $dbh->errstr . "\n"
    +;
    my ($val1,$val2) = $sth->fechrow_array();
    
  2. or download this
    my ($val1,$val2) = $dbh->selectrow_array("SELECT st8a, st8b FROM sampl
    +e WHERE id=$id");