SQL判断分段的连续值
摘要:
有 时候我们需要找出在一组连续的号码中,有哪些是缺失的部分。具体的需求又分为两种情况查找 连续部分的最大和最小值查找缺少的部分经过构造的数据如下-- preparationdrop table test1 purge;create table test1(id int,dt date);insert into test1 (id, dt) select rownum as id, trunc(add_months(sysdate, rownum), 'mm') as dt from dual connect by rownum <= 20;delete test1 whe 阅读全文
posted @ 2012-01-31 11:45
wait4friend
阅读(2610)
评论(0)
推荐(0)
浙公网安备 33010602011771号