不才,我试试:
create table test(id int);
insert into test values(1);
insert into test values(2);
insert into test values(6);
insert into test values(9);
select ID from
(select rownum id from sys.obj$
minus
select id from test)
where rownum< (select max(id) from test);