datatable 转字符串

--select stuff ((SELECT ','+bu from DT_SalesBooking group by bu for xml path('')),1,1,'')
--select stuff ((SELECT DT_FY+ right(cast(power(10,2) as varchar)+DT_PD,2) from DT_SalesBooking group by DT_FY,DT_PD for xml path('')),1,1,'')
--select cast(DT_FY AS VARCHAR)+right(cast(power(10,2) as varchar)+DT_PD,2) from DT_SalesBooking

posted @ 2015-09-02 15:04  yufeiyunsui  阅读(818)  评论(0编辑  收藏  举报