Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: MySQL Parameterized Query with Functions

by roboticus (Chancellor)
on Sep 15, 2014 at 22:36 UTC ( [id://1100660]=note: print w/replies, xml ) Need Help??


in reply to MySQL Parameterized Query with Functions

hoyt:

Go with the first statement: you won't be able to plug functions in at the last moment. When you prepare the statement, the SQL server compiles the statement with the expectation that you're going to provide the actual values to stick into the table, *not* instructions on how to compute the value to stick into the table. Similarly, you can't use table names or join columns as parameters either.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: MySQL Parameterized Query with Functions

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found