Mysql – How to use stored procedure parameters in the execute statement?
I have a simple stored procedure: DELIMITER $$ CREATE PROCEDURE `findUserByName`(IN `name` VARCHAR(36)) BEGIN set @name = name; PREPARE findStmt FROM 'SELECT * FROM user WHERE name=?'; EXECUTE findStmt USING @name; END$$ I call it in PHP with the prepare…