Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
kmr-h5-java
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
62c2201e
authored
2017-12-04 18:19:45 +0800
by
ja
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
处理分组出现sql_mode=only_full_group_by”问题
1 parent
4e93c015
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
kmr_dp_HDP/src/main/resources/mappers/ScoreLogInfoMapper.xml
kmr_dp_HDP/src/main/resources/mappers/ScoreLogInfoMapper.xml
View file @
62c2201
...
...
@@ -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,(
...
...
Please
register
or
sign in
to post a comment