Why Am I Getting MySQL Error #1312 when Using a Simple Stored Procedure?

前端 未结 1 1912
情话喂你
情话喂你 2020-12-21 01:15

I\'m trying to learn how to use MySQL stored procedures. MySQL accepted my procedure:

CREATE PROCEDURE SimpleProc()
   BEGIN
   SELECT *  FROM myTable;
   EN         


        
相关标签:
1条回答
  • 2020-12-21 01:59

    Yes, there seems to be a bug in some older versions of phpMyAdmin, which can cause the 1312 error you are getting. This can happen when calling stored procedures that contain SELECT statements from phpMyAdmin.

    You may want to check out the following posts for further reading:

    • MySQL Stored Procedures not working with SELECT (basic question)
    • How do I write an SP in phpMyAdmin (MySQL)? (comments)

    This bug effects only phpMyAdmin, and you would still be able to call the stored procedure from anywhere else.

    0 讨论(0)
提交回复
热议问题