• [MySQL] GROUP BY 오류 해결 방법
    Backend/Database 2022. 1. 21. 01:36
    반응형

    java.sql.SQLException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column '*******' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by Query: SELECT * FROM `*******` GROUP BY `*******` ORDER BY `*******` Parameters: []

     

    MySQL 터미널에 다음과 같은 명령어를 입력해주면 된다.

    SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

     

    반응형

    'Backend > Database' 카테고리의 다른 글

    [Eclipse/IntelliJ] org.mariadb.jdbc.Driver 오류 해결법  (0) 2021.04.20

    댓글