摘要: CREATE function [dbo].[SplitString]( @Input nvarchar(max), @Separator nvarchar(max)=',', @RemoveEmptyEntries bit=1 )returns @TABLE table ( [Id] int identity(1,1), [Value] nvarchar(max)) asbegin declare @Index int, @Entry nvarchar(max) set @Index = charindex(@Separator,@Input) ... 阅读全文
posted @ 2013-08-09 17:07 红萝卜 阅读(274) 评论(0) 推荐(0) 编辑