Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: MySQL Parameterized Query with Functions

by mje (Curate)
on Sep 16, 2014 at 07:48 UTC ( #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
Node Status?
node history
Node Type: note [id://1100706]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2019-05-24 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (147 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!