时间:2021-07-01 10:21:17 帮助过:27人阅读
--循环执行插入10000条数据 declare @id int declare @name nvarchar(20) declare @date datetime declare @remark nvarchar(50) begin set @id=1 set @name=‘张三‘ set @date=‘2010-01-01 08:22:24.990‘ set @remark=‘吃饭,睡觉,打豆豆‘ while @ID<=100000 begin insert into Book(name,date,remark) values(@name,@date,@remark) set @id=@id+1 set @date=@date+1 end end
SQL Server循环插入100000条数据
标签:height 图片 ble 数据 bsp int mamicode values book