现需要将上结果转换为下结果
上结果查询语句:SELECT TOP 1 id,domain FROM dbo.SimpleTask
下结果转换语句:SELECT a.Id,b.domain FROM (SELECT id,domain=convert(xml,' <root> <v>'+replace(domain,',',' </v> <v>')+' </v> </root>') FROM dbo.SimpleTask) a OUTER APPLY (SELECT domain=C.v.value('.','nvarchar(100)') from a.domain.nodes('/root/v')C(v))b