MySQL Forums
Forum List  »  Newbie

Re: Table-valued parameters to a stored procedure
Posted by: Jon Stephens
Date: December 08, 2021 09:00AM

Per, a parameter to a stored program must be one of the MySQL column types, so no, you can't do this.

What you can do is to pass the name of the table as one of the MySQL string types. To make use of it in the SP, use a prepared statement.


Jon Stephens
MySQL Documentation Team @ Oracle
Orlando, Florida, USA

MySQL Dev Zone
MySQL Server Documentation

Options: ReplyQuote

Written By
Re: Table-valued parameters to a stored procedure
December 08, 2021 09:00AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.