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 quuery result sets
by pajout (Curate) on Aug 23, 2010 at 09:11 UTC | |
Re: Select quuery result sets
by codeacrobat (Chaplain) on Aug 23, 2010 at 09:46 UTC | |
Re: Select quuery result sets
by locked_user sundialsvc4 (Abbot) on Aug 23, 2010 at 12:56 UTC | |
Re: Select quuery result sets
by Anonymous Monk on Aug 23, 2010 at 12:08 UTC | |
by pajout (Curate) on Aug 24, 2010 at 12:06 UTC | |
Re: Select quuery result sets
by Anonymous Monk on Aug 25, 2010 at 17:14 UTC | |
by locked_user sundialsvc4 (Abbot) on Aug 25, 2010 at 20:51 UTC | |
Re: Select quuery result sets
by petecm99 (Pilgrim) on Aug 26, 2010 at 12:18 UTC |