How to create a stored procedure containing a DELIMITER in PHP with PDO?
问题 In my model I defined some procedures. The code (generated by MySQL Workbench) contains DELIMITER definitions, so the procedures look like: -- schema CREATE DATABASE ... CREATE TABLE foo ... -- procedures DELIMITER $$ ... BEGIN DECLARE ... ; OPEN ... ; SET ... ; ... ; END$$ DELIMITER ; Now I need to "import" the SQL to the database via PDO. I tried to pass it as input for the PDO#exec(...), but noticed, that the execution stops on the line of the first DELIMITER definition. I don't want