"be consistent" | |
PerlMonks |
Re: Re: DBI returning mysql columns in strange order.by cchampion (Curate) |
on Oct 09, 2003 at 22:53 UTC ( [id://298139]=note: print w/replies, xml ) | Need Help?? |
Wrong. That won't solve the problem, which is the order of columns returned from a hash, not the order of records in a data set. Since column order seems to be important, a good piece of advice would be usine specific column names (as dragonchild said) in the select statement, and fetching records with fetchrow_arrayref. If a hash is also needed, then it must be integrated by a list of columns. Consider this (untested) example.
In Section
Seekers of Perl Wisdom
|
|