← MySQL stored procedures: all 5 parts
Databases ยท Free practice
MySQL Stored Procedures, Part 4: A Stored Procedure with One Parameter
Watch the lesson, based on lessons by Dr. J. Ubaldo Quevedo, then practice as many times as you want: every New button gives you new data to work with.
1. Watch
(IN name type): the caller sends a value into the procedure.- Use the parameter in the WHERE clause like a variable; strings go in quotes when you CALL.
- Inside a procedure, a parameter wins over a column with the same name, so prefer names like
p_state.
2. Try it yourself
Practice as many times as you want. Every New button builds new tables, names and values. It's free, and you don't need an account or a MySQL installation.
Correct so far: 0