Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个具有“sum”和“group by”功能的 MySQL 视图。它通过客户名称获取每个客户的总价格,我想将其汇总为订购的部分,而不是作为不同的数字列,而是作为单个单元格上的逗号分隔文本数据。
采用CONCAT(SUM(COLA), ', ', SUM(COLB), ', ', ...)
CONCAT(SUM(COLA), ', ', SUM(COLB), ', ', ...)