On 6 Nov 2006 at 15:08, Also Sprach Tim Bunce:

> Exactly. Also keep in mind the combined approach using bind_columns:
> 
>              $sth->execute;
>              my %row;
>              $sth->bind_columns( \( @row{ @{$sth->{NAME_lc} } } ));
>              while ($sth->fetch) {
>                  print "$row{region}: $row{sales}\n";
>              }

Ah. Thanks. Just what I'm after!
But doesn't fetchrow_hashref do this, and more efficiently?

John

Reply via email to