代码如下: SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /* by kudychen 2011-9-28 */ CREATE function [dbo].[SplitString] ( Input nvarchar(max), –input string to be separated Separator nvarchar(max)=’,’, –a string that delimit the substrings in the inpu