http://www.jb51.net/article/80360.htm
上边是关于Group by 的基础,有group by 的感性认识。
select this_.f_username as y0_, count(this_.vid) as y1_, this_.f_username as y2_ , this_.f_rname as y3_ from TBTKY_VISIT_LOG_ROLE_V this_ group by this_.f_username,this_.f_rname
使用聚合函数后,from 表 后 必须有这个字段,否则报 不是Group by 表达式
极度困扰新手