0
下面的代碼是查詢的一部分。我似乎對AND ON C2.loginid = S2.loginid
的代碼部分有錯誤的格式。我應該使用什麼格式?查詢條件的格式
由於提前,
約翰
LEFT JOIN (
SELECT S2.loginid, COUNT(1) AS total
FROM submission S2
INNER JOIN comment C2
ON C2.submissionid = S2.submissionid
AND ON C2.loginid = S2.loginid
GROUP BY S2.loginid
) scs ON scs.loginid = l.loginid