Mysql error - this is incompatible with sql_mode=only_full_group_by
Channel:
Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=WT0GjkmGj70
i get this error when trying to run a query :
#1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test.tr_dashboard.nama' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
---
problem :
your GROUP BY
solution :
run this query :
1) SET sql_mode = '';
2) SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
---
see this video for details. :)
Other Videos By Ambar Hasbiyatmoko
Tags:
mysql
error
group by
query
phpmyadmin
sql
database
ubuntu
fix
linux
aggregate
localhost