我使用以下代码,但我试图理解别名,我收到此代码错误“SQL 命令未正确结束”,第 2 行
SELECT student.lastname, student.firstname
FROM student AS Student_Name
INNER JOIN memberof ON (Student_Name.SID = memberof.studentid)
INNER JOIN studentgroup ON (memberof.groupid = studentgroup.gid)
GROUP BY Student_Name.lastname , Student_Name.firstname
HAVING COUNT(memberof.groupid) >= 2