declare @count_num int
set @count_num=1
while @count_num<31
begin
insert into test(age) select @count_num
set @count_num=@count_num+1
end
go