go--创建函数(第一版)createfunction[dbo].[m_split](@cvarchar(2000),@splitvarchar(2)) returns@ttable(colvarchar(200)) 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
...
继续阅读
(15)