DECLARE @pid INT,@name NVARCHAR(50),@level INT,@i INT,@column2 INT
SET @pid=0
SET @name =‘first‘
SET @level =5
SET @column2=0
SET @i=0
WHILE @i<30 --30为你要执行插入的次数
BEGIN
INSERT INTO table_name ( pid, name,level, column2)
VALUES ( @pid, @name,@level,@column2)
SET @[email protected]+1
END
原文地址:https://www.cnblogs.com/begin256/p/10053644.html
时间: 2024-10-06 08:27:08