在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始终''?
谢谢!