- sql_mode问题
- SHOW VARIABLES WHERE Variable_name LIKE ‘character_set_%’;
- SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,‘ONLY_FULL_GROUP_BY’,’’));
- group by使用让order by失效
- 添加limit
- SELECT
group
,name
from (SELECT name FROM T ORDER BY NAME LIMIT 1000) a GROUP BYgroup
;