generated from pricelees/issue-pr-template
fix: 모든 시/도 코드 조회시 MySQL에서 발생하는 ONLY_FULL_GROUP_BY 문제 해결
This commit is contained in:
parent
c2b50c4dd7
commit
f92c82a382
@ -8,12 +8,10 @@ interface RegionRepository : JpaRepository<RegionEntity, String> {
|
||||
|
||||
@Query(
|
||||
"""
|
||||
SELECT
|
||||
SELECT DISTINCT
|
||||
new kotlin.Pair(r.sidoCode, r.sidoName)
|
||||
FROM
|
||||
RegionEntity r
|
||||
GROUP BY
|
||||
r.sidoCode
|
||||
ORDER BY
|
||||
r.sidoName
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user