Help for this page

Select Code to Download


  1. or download this
    my $select = qq~SELECT field1 field2 field3 FROM $ref;~;
    my $sth = $dbh->prepare( $select );
    $sth->execute();
    my ($field1, $field2, $field3) = $sth->fetchrow_array;
    
  2. or download this
    my @inarray = $sth->fetchrow_array();