我正在尝试在phpmyadmin的SQL窗口中执行以下MYSQL存储过程:
CREATE PROCEDURE searchtoy (IN toy_no INT)
BEGIN
SELECT * FROM Toy
WHERE Toy_ID = toy_no;
END;
但是我收到以下错误:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
我犯的错误在哪里? 如果提供解决方案代码来修复此错误,那将非常有用。