Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Mysql - prepare

by marto (Cardinal)
on Mar 15, 2006 at 11:34 UTC ( [id://536809]=note: print w/replies, xml ) Need Help??


in reply to Mysql - prepare

jeanluca,

If you read the DBI documentation under Placeholders and Bind Values you will find:

With most drivers, placeholders can't be used for any element of a statement that would prevent the database server from validating the statement and creating a query execution plan for it. For example:

"SELECT name, age FROM ?" # wrong (will probably fail)
"SELECT name, ? FROM people" # wrong (but may not 'fail')

If in doubt check out the DBI documentation, and the documentation for the driver you are using.

Hope this helps

Martin

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found