我对Informix有以下问题
失败:
client username
ABC usr1
ABC usr2
CDF usr3
CDF usr4
正确:
client username
ABC usr1, usr2
CDF usr3, usr4
获得正确结果的查询是正确的?
答案 0 :(得分:0)
SELECT client, GROUP_CONCAT(username)
FROM someTable
GROUP BY client;
有效吗?