小编lwa*_*135的帖子

如何在MySQL或Sequelize中禁用only_full_group_by

在Sequelize中,我如何做相同的操作SET sql_mode=''以避免出现以下错误?

SequelizeDatabaseError: ER_WRONG_FIELD_WITH_GROUP: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'assets.group_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

或者,或者,如何更改MySQL的默认配置,以便sql_mode始终''

谢谢!

mysql sequelize.js

3
推荐指数
2
解决办法
6849
查看次数

标签 统计

mysql ×1

sequelize.js ×1