0

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.

2
  • 1
    Someone asked the same as you before. You can check the answers here Commented Dec 5, 2011 at 11:21
  • thanks ealves I had a look at that but I wasn't sure if it was the same question. Commented Dec 5, 2011 at 11:24

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.