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

Re: DBI order by clause and placeholders

by dsheroh (Prior)
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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2016-10-25 23:35 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.