MySQL Stored Procedure with IN and OUT Parameters #923
lovasoa
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A MySQL Stored Procedure is useful when you need to run multiple SQL statements as a unit, especially when logic like branching, loops, or variable handling is involved. It can take input (
IN
) and return results using output (OUT
) parameters.Example with 1 IN and 2 OUT parameters:
This procedure updates a user's last login time and returns their email and account status.
Call it
You cannot use MySQL variables directly from SQLPage.
Depending on what your use case is, you can
Beta Was this translation helpful? Give feedback.
All reactions