摘要: create function f_split(@c varchar(2000),@split varchar(2)) returns @t table(col varchar(20)) as begin while(charindex(@split,@c)<>0) begin insert @t(col) values (substring(@c,1,charindex(@split,@c)-1)) set @c = stuff(@c,1,charindex(@split,@c),'') end insert @t(col) values (@c) return 阅读全文
posted @ 2012-07-23 17:20 withoutaword 阅读(182) 评论(0) 推荐(0) 编辑