Comments - Execute Immediate in a Stored Procedure

 
2 years, 9 months ago First Last

You can simply use the multi value insert in this case

INSERT INTO KJS_TEST (your_column_name) VALUES ('5'), ('4');

 
3 years, 8 months ago Daniel Black

EXECUTE IMMEDIATE, whether in a stored procedure or not, can only handle a single SQL statement. It cannot handle two inserts as you have set @STMT to.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.