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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using the DBI to return the first ix/i rows
by salvadors (Pilgrim) on Jan 25, 2001 at 16:07 UTC | |
by eg (Friar) on Jan 25, 2001 at 16:36 UTC | |
by davorg (Chancellor) on Jan 25, 2001 at 16:40 UTC | |
|
(kudra: see previous answer of question) Re: Using the DBI to return the first ix/i rows
by kudra (Vicar) on Jan 25, 2001 at 16:04 UTC | |
|
Re: Using the DBI to return the first ix/i rows
by dsb (Chaplain) on Jan 25, 2001 at 20:15 UTC |