Help for this page

Select Code to Download


  1. or download this
    
     $sql = "select * from table limit 10";
    ...
    foreach my $row ( @$rows ) {
        print $row->{'id'}, "\n";
      }
    
  2. or download this
     $sth->execute
     or die "SQL Error: $DBI::errstr\n";
     while (@row = $sth->fetchrow_array) {
        print $row[0], "\n";
     }