Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am using DBI library to connect to Oracle dB. I am using fetchrow_hashref() function to retrive data from a select query
The problem I have is the order of the columns in the select query. It is not the same as what I give in the select statement
For eg, suppose I have select e1,e2,e3,e4 from emp; I get the order of the columns as e1,e4,e3,e2 How do I ensure that I get the same order in the resultset as I define in the select query
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Select query result sets
by moritz (Cardinal) on Aug 20, 2010 at 13:48 UTC | |
|
Re: Select query result sets
by roboticus (Chancellor) on Aug 20, 2010 at 14:13 UTC | |
|
Re: Select query result sets
by Tux (Canon) on Aug 20, 2010 at 14:23 UTC | |
|
Re: Select query result sets
by Anonymous Monk on Aug 23, 2010 at 09:14 UTC |