Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Select quuery result sets

by sundialsvc4 (Abbot)
on Aug 25, 2010 at 20:51 UTC ( #857294=note: print w/ replies, xml ) Need Help??


in reply to Re: Select quuery result sets
in thread Select quuery result sets

Hence my suggestion, above, that the simplest approach is simply to remove any assumptions (hence, dependencies) upon the order of the field-names in the query.     Since you have full control over the entire procedure, simply deal with the two problems separately.   The SELECT statement only need make sure that the necessary columns are returned.   Build a separate (Perl) list containing the column-names in the order that you need to present them.   Then, iterate through that list.   Problem (neatly) solved.


Comment on Re^2: Select quuery result sets

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://857294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-12-18 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls