wmsys.wm_concat函数

例子1:
select nDocId as docs from wf_doc_gw 
where nProcId = 64 and nProcStatus=1 and nState=0
and cProcUserList is null
order by nDocId;

运行结果:
docs
------------
xxx
xxx
xxx


例子2:
select wmsys.wm_concat(ndocId) as docs from wf_doc_gw 
where nProcId = 64 and nProcStatus=1 and nState=0
and cProcUserList is null
order by nDocId;

运行结果:
docs
------------
xxx,xxx,xxx

猜你喜欢

转载自jean7155.iteye.com/blog/1851910