Hi guys, I have this simple code:
declare @icur as int
declare @imax as int
set @icur=1
set @imax=@@rowcount
WHILE (@icur <= @imax)
BEGIN
UPDATE helpino SET incre=@icur
set @icur=@icur+1
end
but it doesn't work...it doesn't update incre. It remains 1 ( and not 1,2,3, etc)
Where I'm wrong?