my $rows = 0; while( my @result = $sth->fetchrow_array() ) { last if $rows++ >= 10; ... } $sth->finish();
In reply to Re: Limit results of a DBI query
by Fletch
in thread Limit results of a DBI query
by peppiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |