alter procedure time_byasDeclare @Count IntSet @Count=1099While @Count<=4298 --@Count的初值为1099,自然不会大于等于4298,while循环也自然不会执行Begin update Time_by_day set Time_ID=(@Count-1098) where Time_ID=@Count Set @Count=@Count+1 EndGo執行該存儲過程:execute time_by 相关文章: