17,086
社区成员
发帖
与我相关
我的任务
分享
SQL> select * from t;
ID TOTAL PKNUMBER CONTENT
--- ----- -------- ------------------------------
1 2 1 我爱你
1 2 2 中国
2 2 2 you
2 2 1 I love
3 1 1 我爱中国
SQL>
SQL> select id,replace(wmsys.wm_concat(content),',','') content from (
2 select * from t order by pknumber
3 ) group by id;
ID CONTENT
--- --------------------------------------------------------------------------------
1 我爱你中国
2 I love you
3 我爱中国
SQL>