变
SELECT cptId,FristType,value FROM( SELECT cptId,FristType, cptName = CONVERT(xml,'<root><v>' + REPLACE(cptName, ',', '</v><v>') + '</v></root>') FROM dbo.GOA_CustProduct_type_Main where pass=1 )A OUTER APPLY( SELECT value = N.v.value('.', 'varchar(100)') FROM A.cptName.nodes('/root/v') N(v) )B