摘要: --select a.RptID,T.C.value('.','nvarchar(100)')--from--(select RptID,-- txt=convert(xml,'<root><v>'+replace(txt,',','</v><v>')+'</v></root>')--from Test--)a--outer apply a.txt.nodes('/root/v') AS T(C)declare 阅读全文
posted @ 2012-09-20 12:32 空紫竹 阅读(3221) 评论(0) 推荐(0) 编辑