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?
In reply to Re^2: fetchrow/all vs selectrow/all
by bradcathey
in thread fetchrow/all vs selectrow/all
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |