|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Re: DBI returning mysql columns in strange order.by mpeppler (Vicar) |
| on Oct 09, 2003 at 19:26 UTC ( [id://298141]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Indeed. select * from ... is really bad form (although expedient when you are in a hurry, I'll admit). That said the fundamental problem of the OP's code, as has been noted in one of the previous responses, is the reliance on the order of hash keys - I'd like to stress that one should retrieve column names via $sth->{NAME} (or the NAME_lc/NAME_uc variations) as that will correctly list all the column names in the proper order. Michael
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||