CREATE
PROCEDURE
InsertDB
@StartID int = 1 ,
@EndID int = 10000
AS
While @StartID <= @EndID
Begin
Insert Into Question(Title,Content,SenderID,AskTime,Tags,Mark,IP) Values ( ' TestTitle10 ' , ' TestContent10 ' , 10 , 2007 - 07 - 09 , ' Test10 Tags10 ' , 15 , ' 2.33.2.3 ' ) -- 这里写你的插入SQL语句
Set @StartID = @StartID + 1 -- 这里计数器加1
End
GO
@StartID int = 1 ,
@EndID int = 10000
AS
While @StartID <= @EndID
Begin
Insert Into Question(Title,Content,SenderID,AskTime,Tags,Mark,IP) Values ( ' TestTitle10 ' , ' TestContent10 ' , 10 , 2007 - 07 - 09 , ' Test10 Tags10 ' , 15 , ' 2.33.2.3 ' ) -- 这里写你的插入SQL语句
Set @StartID = @StartID + 1 -- 这里计数器加1
End
GO