62c2201e by ja

处理分组出现sql_mode=only_full_group_by”问题

1 parent 4e93c015
......@@ -31,7 +31,7 @@
select(@i:= @i+ 1) r,
a.*
from(
select openid, min(score) score, count(*) num, nickname, headimgurl
select openid, min(score) score, count(*) num, min(nickname) nickname, min(headimgurl) nickname
from t_kmr_score_log_info
where status= 1
GROUP BY openid) a,
......@@ -46,7 +46,7 @@
from(
select(@i:= @i+ 1) r, a.*
from(
select openid, min(score) score, count(*) num, nickname, headimgurl
select openid, min(score) score, count(*) num, min(nickname) nickname, min(headimgurl) nickname
from t_kmr_score_log_info
where status= 1
GROUP BY openid) a,(
......