Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare("SELECT avg(...) FROM prospects");
    $sth->execute;
    my ($avg) = $sth->fetchrow_array;
    
  2. or download this
    my ($avg) = $dbh->selectrow_array("SELECT avg(...) FROM prospects");