FAQ

On Thu, Jun 13, 2002 at 03:16:29AM -0400, Philip M.Gollucci wrote:
I need to write a wrapper function for calls to
$sth->fetchrow_array() where the SELECT statement will return multiple
rows.

such that

sub do_sql_array ($@) {
# on initial call: $sth = $dbh->prepare(); $sth->execute();
# on initial and subsequent until no more rows: return on row from
# $sth->fetchrow_array()
# on no more rows to return: return () - an emply list
}
Out of interest, why do you want/need it to work that way?

Tim.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupdbi-users @
categoriesperl
postedJun 13, '02 at 7:18a
activeJun 13, '02 at 9:09a
posts3
users3
websitedbi.perl.org

People

Translate

site design / logo © 2022 Grokbase