declare @S varchar(20) set @S = '11111,2323322,332323,323...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts

Q&A for enthusiasts and power users of the Android operating system

declare @S varchar(20)
set @S = '11111,2323322,332323,3232324,532323'

while len(@S) > 0
begin
  print left(@S, charindex(',', @S+',')-1)
  set @S = stuff(@S, 1, charindex(',', @S+','), '')
end

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results