日期:2014-05-17 浏览次数:21051 次
select min(l) l
from (select level l from dual connect by level < 1000) t
where l not in (select distinct l from table_name)
with simo_sd as
(select 1 as id from dual
union all
select 2 from dual
union all
select 3 from dual
union all
select 19 from dual
union all
select 433 from dual)
--查询语句
select min(lv)
from (select level as lv from dual connect by level <= 999) d
where not exists (select 1 from simo_sd f where d.lv = f.id);