how to fetch all records
From: Tiffany Thang (tiffanythang_at_gmail.com)
Date: 02/25/05
- Next message: Will Rutherdale: "RE: how to fetch all records"
- Previous message: Sabari Girish: "DBI installation problem in Cygwin"
- Next in thread: Will Rutherdale: "RE: how to fetch all records"
- Maybe reply: Will Rutherdale: "RE: how to fetch all records"
- Maybe reply: Will Rutherdale: "RE: how to fetch all records"
- Reply: Tom Mornini: "Re: how to fetch all records"
- Maybe reply: Jeffrey Seger: "Re: how to fetch all records"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Feb 2005 12:22:45 -0500 To: dbi-users@perl.org
Is there another way of fetching all table records in one statement
without going through a loop?
What I have now is as follows:
while (@eachrec=$sth->fetchrow_array) {
do whatever;
}
I want to retrieve all the records into an array first and process it
later on. What would be the best way of doing it?
thanks.
tiff
- Next message: Will Rutherdale: "RE: how to fetch all records"
- Previous message: Sabari Girish: "DBI installation problem in Cygwin"
- Next in thread: Will Rutherdale: "RE: how to fetch all records"
- Maybe reply: Will Rutherdale: "RE: how to fetch all records"
- Maybe reply: Will Rutherdale: "RE: how to fetch all records"
- Reply: Tom Mornini: "Re: how to fetch all records"
- Maybe reply: Jeffrey Seger: "Re: how to fetch all records"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|