Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Sorting SQL results

by runrig (Abbot)
on Oct 16, 2013 at 20:38 UTC ( #1058550=note: print w/ replies, xml ) Need Help??


in reply to Sorting SQL results

One general solution:
$sth->execute(); my $cols = $sth->{NAME_lc}; my %row; $sth->bind_columns( \@row{@$cols} ); while ( $sth->fetch ) { print "$row{$_} " for @$cols; print "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2016-06-30 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (400 votes). Check out past polls.