I’ve seen some (my)sql queries written like this:
SELECT ? + 4;
What’s the meaning of ? ? My guess is it’s some kind of parameter, but how does one specify the value for it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
?is a placeholder for parameter values in the syntax for prepared statements. The linked article gives the following example:Since you also tagged sql, it’s worth linking to the Prepared Statement Wikipedia article for further reading independent of MySQL.