sql2005循环执行插入 declare @rowNo intset @rowNo=1while @rowNo<=6000--对6000次循环操作begin--这儿对每一行要进行的操作的代码insert into ..set @rowNo=@rowNo+1end