1. sql_mode = only_full_group_by不相容
错误1055(42000):表达# 1选择列表不在GROUP BY子句包含非聚集列“tdb_goods。tdb_goods。goods_id ‘这是没有功能依赖于列在GROUP BY子句;这是sql_mode = only_full_group_by不相容
mysql> 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';
mysql> set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';