CREATE function dbo.split_string(@LongStr varchar(8000),@SearchStr varchar(10))
 returns @t table(s varchar(100))
as
begin
 while (charindex(@SearchStr,@LongStr)>0)
 begin
  insert @t select left(@LongStr,charindex(@SearchStr,@LongStr)-1)
  select @LongStr=stuff(@LongStr,1,charindex(@SearchStr,@LongStr),'')
 end
 insert @t select @LongStr
 return
end

相关文章:

  • 2021-08-31
  • 2022-12-23
  • 2021-11-08
  • 2021-11-21
  • 2022-01-27
  • 2022-02-16
  • 2021-06-29
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-11-30
相关资源
相似解决方案