Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: DBI order by clause and placeholders

by dsheroh (Parson)
on Jun 11, 2013 at 09:27 UTC ( #1038224=note: print w/ replies, xml ) Need Help??


in reply to DBI order by clause and placeholders

Meditate for a moment upon the distinct functions of prepare and execute.

prepare examines the structure of the query and constructs a plan for how it shall ultimately be processed.

execute runs that plan, providing any data values that may be needed to do so.

Changing an order by clause affects the way that the query is processed. It is a structural change, not a changed data value. It must, therefore, be specified at the prepare stage, when the structure of the query is established, not at the execute stage.


Comment on Re: DBI order by clause and placeholders
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-09-21 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls