SqlServer实现Oracle的wm_concat()函数功能
时间:2020-07-11 09:56:08
收藏:0
阅读:768
select ‘‘‘‘+SUBSTRING( b.id,2,len(b.id))+‘‘‘‘ from ( select (stuff(( select ‘‘‘,‘‘‘ +t.sysserialno from ( select * from sdshippkitem where orderno = ‘0200186943‘ ) t for xml path(‘‘)),1,1,‘‘)) id) b
原文:https://www.cnblogs.com/wangjp-1233/p/13282380.html
评论(0)