我花了几个小时,我不明白为什么这是突出显示红色,我不知道我的错误是什么。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