Question

I have tried the following code with and without a delimiter in phpmyadmin. It seems to reject the delimiter when I have present.

I am using 1 and 1 hosting and the MySQL version is 5.0

The error code I specifically get is #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;
Was it helpful?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top