UPDATE [dbo].[TLotterySpiderRule] SET [Id] = 0

declare cus_cursor cursor scroll for 
SELECT Id from [dbo].[TLotterySpiderRule] 
open cus_cursor
declare @Id int
declare @count int
set @count=0
fetch next from cus_cursor into @Id
while @@FETCH_STATUS=0
begin
set @count=(@count+1)
print @count
UPDATE [dbo].[TLotterySpiderRule] SET [Id] = @count where id = @id
fetch next from cus_cursor into @Id
end
close cus_cursor
deallocate cus_cursor

 

相关文章:

  • 2022-02-15
  • 2021-08-30
  • 2022-01-04
  • 2022-12-23
  • 2022-01-13
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-01-13
  • 2021-11-12
  • 2022-12-23
  • 2021-04-07
  • 2021-09-05
  • 2021-04-11
相关资源
相似解决方案