alter procedure time_by
as
Declare @Count Int
Set @Count=1099
While @Count<=4298   --@Count的初值为1099,自然不会大于等于4298,while循环也自然不会执行
Begin
    update Time_by_day set Time_ID=(@Count-1098) where Time_ID=@Count
    Set @Count=@Count+1
End
Go

執行該存儲過程:
execute time_by

相关文章:

  • 2021-08-23
  • 2021-08-03
  • 2022-12-23
  • 2021-07-27
  • 2022-02-28
  • 2021-11-28
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
相关资源
相似解决方案