in reply to Re^3: Retrieving multiple records from database
in thread Retrieving multiple records from database
Thanks, davido, I ended up with this in my final app:
while ($row = $sth->fetchrow_array()) { push (@categories, $row); }
I guess fetchrow and fetchall we appropriately named ;^) Now, I wish there were a fetchcol that just retrived a known column of a given row (intersection, so selectcol_arrayref wouldn't work) so I don't have to do:
$single_value = $categories[0];
after the fetch, and could just do:
$single_value = $sth->fetchcol_justone;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Retrieving multiple records from database
by davido (Cardinal) on Oct 17, 2004 at 15:41 UTC |