我在phpmyadmin中尝试使用和不使用分隔符的以下代码。我出席时似乎拒绝了分隔符。
我使用1和1托管,MySQL
版本为5.0
我明确得到的错误代码是 #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 3
CREATE PROCEDURE add_person_type_procedure(Person_Type_Value_Description VARCHAR(150) , Create_Date DATETIME , Modify_Date DATETIME , Archive CHAR(1))
BEGIN
DECLARE ID VARCHAR(36);
SET ID = (SELECT UUID());
END;
答案 0 :(得分:0)
http://dev.mysql.com/doc/refman/5.1/en/stored-programs-defining.html
我认为你需要“设置@ID = ...”