我的查询出现以下语法错误。任何人都可以帮助我吗?
1064 - 您的SQL语法出错;检查与MariaDB服务器版本对应的手册,以便在'LEFT JOIN p_property ON p_session.PropertyID = p_property.PropertyID,LEFT JOIN p_r'第1行附近使用正确的语法
SELECT p_property.PropertyName,p_property.DistrictID,
p_property.SettlementID,
AVG (p_reviews.ReviewScore) AS avg_score,
COUNT (p_facilities.FacilitiesID) AS num_facilities
FROM p_session,
LEFT JOIN p_property ON p_session.PropertyID=p_property.PropertyID,
LEFT JOIN p_reviews ON p_reviews.PropertyID=p_session.PropertyID,
LEFT JOIN p_facilities ON p_facilities.PropertyID=p_session.PropertyID;
答案 0 :(得分:0)
额外逗号
FROM p_session,
应该是
FROM p_session