Answers for "MySQL stored procedure vs function"

0

MySQL stored procedure vs function

The most general difference between procedures and functions is that they are invoked differently and for different purposes:

A procedure does not return a value. Instead, it is invoked with a CALL statement to perform an operation such as modifying a table or processing retrieved records.
A function is invoked within an expression and returns a single value directly to the caller to be used in the expression.
You cannot invoke a function with a CALL statement, nor can you invoke a procedure in an expression.
Posted by: Guest on June-24-2021

Code answers related to "MySQL stored procedure vs function"

Browse Popular Code Answers by Language