我花了幾個小時,我不明白爲什麼這是突出顯示紅色,我不知道我的錯誤是什麼。MySQL存儲的函數語法錯誤
CREATE FUNCTION Student_Section_Count(StudentID INT)
Returns INT
Begin
DECLARE section_Registred INT;
SET section_Registred= (Select COUNT(DISTINCT Section.ID) as 'Students Registration Count'
FROM Section
Inner Join
Registration on registration.StudentID=Section.ID
Where registration.StudentID=StudentID);
Return Section_Registred;
END$$
Delimiter;
它強調END和分隔符,以及INT從返回INT