15. "wm_concat"_数据库中将查询出来的多条记录中的某个字段用","拼接起来
Posted on 2014-11-26 09:19 zkx4213 阅读(243) 评论(0) 编辑 收藏 举报例子:
select wm_concat(roleid) from lbmember where userid = ?
值的形式:1,2,3
下面是把1,2,3转换为1;2;3
select replace((select wm_concat(roleid) from lbmember where userid = ?),',',';') from dual