"因为该列没有包含在聚合函数或 GROUP BY 子句中。"这个问题好烦,请兄弟们帮帮 SELECT U_ID,House_Addrinfo, COUNT(U_ID) AS CX FROM YX_ChuShou GROUP BY U_ID ORDER BY CX DESC
这条语句出现"选择列表中的列 'YX_ChuShou.House_Addrinfo' 无效,因为该列没有包含在聚合函数或 GROUP BY 子句中。"的错误提示,问题出在哪里,为什么,希望知道的朋友能帮个忙.谢谢.
------解决方案--------------------
------解决方案-------------------- SELECT U_ID,House_Addrinfo, COUNT(U_ID) AS CX FROM YX_ChuShou GROUP BY U_ID ,House_Addrinfo ORDER BY CX DESC
------解决方案-------------------- 看dawugui最后一句话.
------解决方案-------------------- SELECT U_ID,House_Addrinfo, COUNT(U_ID) AS CX FROM YX_ChuShou GROUP BY U_ID,House_Addrinfo ORDER BY CX DESC