image
CHAPTER
5
Creating and Managing Routines
imageoutines are stored programs. Specifically, they’re stored functions or procedures. There are three differences between functions and procedures in MySQL. Functions only take input or pass-by-value parameters, whereas procedures take input, input and output, and output-only parameters (any parameter with an output mode is a pass-by-reference parameter). Functions return a value and can be used inside queries or as right operands in assignments, but procedures can’t do either. Procedures can contain INSERT, ...

Get MySQL Workbench: Data Modeling & Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.