in reply to Re: Elegance, dammit!
in thread Elegance, dammit!
I'm afraid that doesn't work for me, ysth. 'selectall' rather than 'selectcol' is the deal-killer here (I don't see the need for fetching the entire content of that table, extracting the columns, and then doing all this processing.)
This gets me exactly the info I need - although the structure is a little different from what I want:
my @ref = @{ $dbh->selectcol_arrayref( "select date, label, subject from travel where date>= curdate()-5 order by date", {Columns=>[1,2,3]} ) };
I do indeed appreciate your attempt to approach it from a broader viewpoint - I try not to lose track of the fact that stepping back can be as important as focusing down when trying to solve a problem. [Grin] Hell, my wife is Japanese-American. She'd beat my butt if I was ever so silly as to lose track of context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Elegance, dammit!
by ysth (Canon) on Jun 17, 2007 at 05:05 UTC | |
by oko1 (Deacon) on Jun 19, 2007 at 17:28 UTC | |
by ysth (Canon) on Jun 19, 2007 at 18:07 UTC |