admin 管理员组

文章数量: 1086019


2024年2月19日发(作者:电脑编程圣诞树代码)

return stuff(@CountsResult,1,@location-1,convert(varchar(100),@theCount+@times) );

end else begin ---不是1号则找到对应的位置 while @location>0

BEGIN set @start=@location+1; set @lastLocation=@location; set @location=charindex(',',@CountsResult,@start);

SET @count1=@count1+1; IF(@count1=@miCount-1) BEGIN BREAK; END

end set @theCountStr=substring(@CountsResult,@lastLocation+1,@location-@lastLocation-1); set @theCount=cast(@theCountStr as bigint); SET @CountsResult= stuff(@CountsResult,@lastLocation+1,@location-@lastLocation-1,convert(varchar(100),@theCount+@times) ); RETURN @CountsResult;end

RETURN @CountsResult;END


本文标签: 编程 电脑 圣诞树