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.
我正在使用 mysql 工作台并使用 sql 创建一个按组件分组和按组件排序的每月输出列表
然后我可以将这些全部导出到单个 cdv 文件添加到每个列表的底部吗?
谢谢理查德
你的意思是GROUP_CONCAT?前任,
GROUP_CONCAT
SELECT ID, GROUP_CONCAT(CAtegoryID) CatIDList FROM tableName GROUP BY ID
将返回
ID CatIDList =================== 1 1,2,3 2 1,5 3 2,4,5,6