日期:2014-05-17 浏览次数:20736 次
create table tt
(
id1 number,
name varchar(10)
)
declare max_n number;
rc number;
Begin
max_n := '100000000';
rc:=1;
insert into tt values(1,'aa');
begin
while rc*2<=max_n
loop
insert into tt select id1+rc,'aa' from tt;
rc :=rc*2;
end loop;
end;
End;