Select Count(b.topic)
SQL代码
select u.sex,u.individualism,count(b.tpoic),u.Points,u.Experience,u.Charm,u.VisiteTimes,u.LastDate,
u.regdate,u.Imgpath,u.Uemail,u.QQID,u.Individualsignature from Users as u inner join BulletinList as b
on(u.userid=b.userid) and u.userName='超级管理员'GROUP BY u.userid,b.userid
报错“u.Sex' 在选择列表中无效,因为该列既不包含在聚合函数中,也不包含在 GROUP BY 子句中。”
请问要怎么获得count(b.tpoic)发表文章的次数!
谢谢啊!