I am wondering if it is possible when running a MySQL select statement, that a user input is prompted.
Example: I want to find out the the total number of products sold and multiply it by (User input).
Is this possible in MySQL?
Thanks.
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.
Not within MySQL client (the normal client shipped with MySQL). You could write your own script to do it or with any luck find someone else who already has. But it’s not built in.