Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the difference between a stored procedure and a function in MySQL?

  1. A A function must return a value and can be used in expressions; a procedure need not
  2. B A procedure must return a value; a function need not
  3. C There is no difference
  4. D Procedures can only be used by administrators
Answer

A function must return a value and can be used in expressions; a procedure need not

Functions return a single value and can appear inside SELECT statements. Procedures are invoked with CALL and may return results via OUT parameters or result sets.

All MySQL MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as