query sql_mode:
select @@global.sql_mode;
set sql_mode:
set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
注意,【group by 主键/唯一键】不受sql_mode=only_full_group_by
的限制,可以正常执行
网友评论