declare @str nvarchar(100)
set @str='a,b,c,d,e,f'
declare @start int
declare @v nvarchar(100)
declare @i int
select @i=len(@str)
while  @i>0
    begin
    select @start=charindex(',',@str)
    -- print @start
    select @v=substring(@str,0,@start)
    print @v
    select @str=substring(@str,@start+1,len(@str))
    select @i=charindex(',',@str)
   end  
if @i=0
     print @str

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-20
  • 2022-12-23
  • 2021-11-28
  • 2021-11-30
  • 2022-12-23
  • 2021-09-01
  • 2021-05-24
相关资源
相似解决方案