个人笔记【WM_CONCA()分组逗号拼接字段】

来源:互联网 发布:服务器运行java服务端 编辑:程序博客网 时间:2024/05/16 07:45

WM_CONCA()】分组逗号拼接字段,(WM_CONCAT(要拼接的字段名),分组不要把拼接的字段分组

表名 test

one

two

three

100.01

A

A1

200

A

A2

 

select sum(one) as one,two,WM_CONCAthree) as three fromtest group by two;

 

结果

one

two

three

300.01

A

A1,A2

0 0
原创粉丝点击