[英]Procedure giving error in mysql
我在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
- 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;
http://dev.mysql.com/doc/refman/5.1/en/stored-programs-defining.html
我認為您需要“設置@ID = ...”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.