하루하나
close
프로필 배경
프로필 로고

하루하나

  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

[prisma] group by 예제

model Store { dosi_text String sigu_text String ... } // 모델이 위와 같다면 아래와 같이 group by 해서 가져올수 있다. const stores = await client.store.groupBy({ by: ['dosi_text','sigu_text'], }) 간단한건데 시간이 조금 많이 해매었다. 이유가 뭐냐면 중간에 model값을 바꿨던건데, 모델값을 바꾸기 위해 npx prisma generate 명령어를 쓰는데, 이걸 하고나서 바로 next.js 프로젝트에 바로 적용이 안되었던거다. next.js 프로젝트를 종료하고 다시 실행하니 이상없이 적용이 되었다.

  • format_list_bulleted Programming/prisma
  • · 2023. 6. 29.
  • textsms

[ERROR/mysql8] incompatible with sql_mode=only_full_group_by

mysql 8버전에서 group by 실행시 아래와 같이 에러메세지 출력 this is incompatible with sql_mode=only_full_group_by 찾아본봐로는 보안때문에 groupy 절외에 데이터를 참조할수 없다고 한다. 해결방법 mysql root 권한으로 아래 명령어 실행 SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

  • format_list_bulleted Programming/MySql
  • · 2019. 4. 19.
  • textsms
  • navigate_before
  • 1
  • navigate_next
반응형
공지사항
전체 카테고리
  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
최근 글
인기 글
최근 댓글
태그
  • #css
  • #MySQL
  • #error
  • #springboot
  • #javascript
  • #Vue
  • #GIT
  • #AngularJS
  • #sts
  • #JPA
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바