原来GROUP_CONCAT中,是支持GROUP内排序的,自己好土。。
SELECT student_name, GROUP_CONCAT(DISTINCT test_score ORDER BY test_score DESC SEPARATOR ‘ ‘) FROM student GROUP BY student_name;
转载自:http://www.topjishu.com/6783.html
MySQL中GROUP_CONCAT中排序
标签:pre www html .com class shu group 排序 cat