Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: MySQL Parameterized Query with Functions

by mje (Curate)
on Sep 16, 2014 at 07:48 UTC ( [id://1100706]=note: print w/replies, xml ) Need Help??


in reply to MySQL Parameterized Query with Functions

As others have explained you cannot change the SQL itself with parameters, you can only change values. However, there should be no reason why you cannot use:

insert into download_log (download_id,status,update_time) values(?,get +ValueByMeaning(?,?),?)

and pass 4 parameters. Then you can prepare the SQL outside of the loop.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found