Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-02-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (369 votes). Check out past polls.