直接循环写入数据

595 查看

有时候我们需要想数据中写数据
declare @i int
set@i=1
while @i<30
begin
insert into table(id) values(@i)
set @i=@i+1
end