I can't find any reference to using prepared statements with "ON DUPLICATE KEY UPDATE" with MySQL and PHP. Am I correct in thinking that this is not possible?
-Jim
I can't find any reference to using prepared statements with "ON DUPLICATE KEY UPDATE" with MySQL and PHP. Am I correct in thinking that this is not possible?
-Jim
You can most certainly use ON DUPLICATE KEY UPDATE
with PHP+MySQL. Have you tried it? If you have, what problem did you run into?
You should be able to run every SQL query as a prepared statement. I don't know why you think there would be any exception for ON DUPLICATE KEY UPDATE
. Try it first and ask us if there are any problems.