MySQL stored procedures reference
17 February 2024 (Updated 17 February 2024)
In a nutshell
A stored procedure lets you define a reusable “procedure” containing any SQL statement you can then invoke from application code or an SQL console.
Stored procedures support:
- Parameters
- Variables
- Conditional statements like
IF
orCASE
- Loops such as
WHILE
,LOOP
, andREPEAT
- Invoking other procedures
Recipes
Create procedure without parameters
Create procedure with params
Create stored procedure with input and output params
Execute procedure
Remove procedure
Tagged:
MySQL
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment