MySQL stored procedure caused `Commands out of sync`

前端 未结 4 1535
余生分开走
余生分开走 2020-12-16 04:11

Call procedure works all right in MySQL terminal, but in PHP, caused Commands out of sync; you can\'t run this command nowCommands out of sync; you can\'t run this com

4条回答
  •  一个人的身影
    2020-12-16 05:02

    This "bug" was happening to me with extremely simple procedure even inside phpmyadmin. The reason was that I was declaring general variables (without the @ prefix). I changed my variables to user-defined variables prefixed with @ and it was solved.

提交回复
热议问题