程序在mysql中给出错误

时间:2012-04-20 15:13:41

标签: php mysql stored-procedures phpmyadmin procedures

我在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;

1 个答案:

答案 0 :(得分:0)