select substring(text,1,charindex(',',text)-1) as [before],substring(text,charindex(',',text),len(text)) as [after]from table 标签 substring charindex