摘要: ALTERfunction[dbo].[Fun_Split](@cvarchar(2000),@splitvarchar(2))returns@ttable(colvarchar(20))asbeginwhile(charindex(@split,@c)<>0)begininsert@t(col)values(substring(@c,1,charindex(@split,@c)-1))set@c=stuff(@c,1,charindex(@split,@c),'')endinsert@t(col)values(@c)returnend 阅读全文
posted @ 2011-05-23 17:27 melody&amp;amp;amp;bobo 阅读(211) 评论(0) 推荐(0) 编辑