Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 romping around the Monastery: (1)
As of 2026-05-11 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.