Oracle数据中存储有一组从1开始的连续数字,其中间有断续,例如:1,2,3,4,5,7,8,9,11... 5
1个回答
2015-10-20
展开全部
with t as
(select max(col) ma from tab),
t1 as
(select level lv from t connect by level <= ma)
select lv
from t1 a
left join tab b
on a.lv = b.col
where colis null
order by lv
表:tab
数字字段:col
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询