mysql GROUP_CONCAT 顺序排序
group_concat函数支持order by内部排序,例如:
# 按照id倒序拼接img
SELECT GROUP_CONCAT(img ORDER BY id DESC) FROM `thumb_table`;
参考:
https://mariadb.com/kb/en/group_concat/
# 按照id倒序拼接img
SELECT GROUP_CONCAT(img ORDER BY id DESC) FROM `thumb_table`;
参考:
https://mariadb.com/kb/en/group_concat/