像Major表里面批量插入数据演示:
代码如下:
Declare @I int Set @I=0 Begin Tran InsertData: Insert into Major values(@I,'hello') Set @I=@I+1 if @I<10000 Goto InsertData Commit Tran