Help for this page

Select Code to Download


  1. or download this
    $sth->execute();
    my $recordset = $sth->fetchall_arrayref();
    ...
    else {
       # empty recordset. Do something else.
    }
    
  2. or download this
    my $found = 0;
    while (my $rec = $sth->fetchrow_arrayref()) {
    ...
       # do something else
    }