摘要: 问题:一个表test,有2列:firstname varchar(50),domain varchar(50)。test表有如下数据行:firstname domain----------------------tony group1tony group2tony group3johngroup4提问:求一条sql,查询结果可以按如下格式显示:firstname domain---------------------------tony group1,group2,group3johngroup4解决方法1select [name],(select [group] from test wher 阅读全文