in reply to Re: fetchrow/all vs selectrow/all
in thread fetchrow/all vs selectrow/all
Alrighty then. How do these two compare? (all strict, of course)
$stmt = "SELECT * FROM mytable WHERE id = $myid"; $sth= $dbh->prepare($stmt); $sth->execute; $results = $sth->fetchall_arrayref({}); __versus__ $stmt = "SELECT * FROM mytable WHERE id = $myid"; $results = $dbh->selectall_arrayref($stmt);
Advantages of one over the other?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: fetchrow/all vs selectrow/all
by Aristotle (Chancellor) on Nov 26, 2005 at 01:00 UTC | |
by bradcathey (Prior) on Nov 26, 2005 at 01:28 UTC | |
by Aristotle (Chancellor) on Nov 26, 2005 at 01:54 UTC |