in reply to how to deal with multiple results returned by select statement
my $sth = $dbh->prepare_cached($sql); # or simply ->prepare $sth->execute(@arguments) $sth->bind_columns(\my ($id, $name, other columns ...)); while ($sth->fetch) { print "$id: $name\n"; }
|
|---|