|
|
| P is for Practical | |
| PerlMonks |
Using the DBI to return the first ix/i rowsby Anonymous Monk |
| on Jan 25, 2001 at 16:01 UTC ( #54247=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I need to return the first x rows of a 'select' statement. $returnRef = $db->selectall_arrayref($sql); returns all the rows, but the table has >50,000 rows and I only want to see the first 10, for example. How can this be done? Thanks. May you Perl in peace
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||