<tfoot id='wK8QC'></tfoot>
      <i id='wK8QC'><tr id='wK8QC'><dt id='wK8QC'><q id='wK8QC'><span id='wK8QC'><b id='wK8QC'><form id='wK8QC'><ins id='wK8QC'></ins><ul id='wK8QC'></ul><sub id='wK8QC'></sub></form><legend id='wK8QC'></legend><bdo id='wK8QC'><pre id='wK8QC'><center id='wK8QC'></center></pre></bdo></b><th id='wK8QC'></th></span></q></dt></tr></i><div id='wK8QC'><tfoot id='wK8QC'></tfoot><dl id='wK8QC'><fieldset id='wK8QC'></fieldset></dl></div>

      1. <legend id='wK8QC'><style id='wK8QC'><dir id='wK8QC'><q id='wK8QC'></q></dir></style></legend>
      2. <small id='wK8QC'></small><noframes id='wK8QC'>

        • <bdo id='wK8QC'></bdo><ul id='wK8QC'></ul>

        如何从一系列数字中检查任何缺失的数字?

        How to check any missing number from a series of numbers?(如何从一系列数字中检查任何缺失的数字?)
        <i id='fKLB5'><tr id='fKLB5'><dt id='fKLB5'><q id='fKLB5'><span id='fKLB5'><b id='fKLB5'><form id='fKLB5'><ins id='fKLB5'></ins><ul id='fKLB5'></ul><sub id='fKLB5'></sub></form><legend id='fKLB5'></legend><bdo id='fKLB5'><pre id='fKLB5'><center id='fKLB5'></center></pre></bdo></b><th id='fKLB5'></th></span></q></dt></tr></i><div id='fKLB5'><tfoot id='fKLB5'></tfoot><dl id='fKLB5'><fieldset id='fKLB5'></fieldset></dl></div>
          <bdo id='fKLB5'></bdo><ul id='fKLB5'></ul>

          1. <small id='fKLB5'></small><noframes id='fKLB5'>

              1. <tfoot id='fKLB5'></tfoot>
                  <tbody id='fKLB5'></tbody>

                • <legend id='fKLB5'><style id='fKLB5'><dir id='fKLB5'><q id='fKLB5'></q></dir></style></legend>

                  本文介绍了如何从一系列数字中检查任何缺失的数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在做一个项目,为一所大学创建一个招生系统;这些技术是 Java 和 Oracle.

                  I am doing a project creating an admission system for a college; the technologies are Java and Oracle.

                  在其中一张表中,存储了预先生成的序列号.稍后,根据这些序列号,将输入申请人的表格数据.我的要求是,当输入过程完成时,我将必须生成一个 Lot wise 报告.如果在提供预先生成的序列号期间丢失了任何序列号.

                  In one of the tables, pre-generated serial numbers are stored. Later, against those serial numbers, the applicant's form data will be entered. My requirement is that when the entry process is completed I will have to generate a Lot wise report. If during feeding pre-generated serial numbers any sequence numbers went missing.

                  比如在一张表中,序号是7001、7002、7004、7005、7006、7010.从上面的系列可以看出,从7001到7010,缺失的数字是7003、7007、7008和7009

                  For example, say in a table, the sequence numbers are 7001, 7002, 7004, 7005, 7006, 7010. From the above series it is clear that from 7001 to 7010 the numbers missing are 7003, 7007, 7008 and 7009

                  Oracle 中是否有任何可用的 DBMS 函数来找出这些数字,或者是否有任何存储过程可以满足我的目的,然后请提出一种算法.

                  Is there any DBMS function available in Oracle to find out these numbers or if any stored procedure may fulfill my purpose then please suggest an algorithm.

                  我可以在 Java 中找到一些技术,但为了速度,我想在 Oracle 中找到解决方案.

                  I can find some techniques in Java but for speed I want to find the solution in Oracle.

                  推荐答案

                  无需硬编码 9 的解决方案:

                  A solution without hardcoding the 9:

                  select min_a - 1 + level
                       from ( select min(a) min_a
                                   , max(a) max_a
                                from test1
                            )
                    connect by level <= max_a - min_a + 1
                      minus
                     select a
                       from test1
                  

                  <小时>

                  结果:

                  MIN_A-1+LEVEL
                  -------------
                           7003
                           7007
                           7008
                           7009
                  
                  4 rows selected.
                  

                  这篇关于如何从一系列数字中检查任何缺失的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)

                    1. <i id='iTmFb'><tr id='iTmFb'><dt id='iTmFb'><q id='iTmFb'><span id='iTmFb'><b id='iTmFb'><form id='iTmFb'><ins id='iTmFb'></ins><ul id='iTmFb'></ul><sub id='iTmFb'></sub></form><legend id='iTmFb'></legend><bdo id='iTmFb'><pre id='iTmFb'><center id='iTmFb'></center></pre></bdo></b><th id='iTmFb'></th></span></q></dt></tr></i><div id='iTmFb'><tfoot id='iTmFb'></tfoot><dl id='iTmFb'><fieldset id='iTmFb'></fieldset></dl></div>

                      <tfoot id='iTmFb'></tfoot>
                          <tbody id='iTmFb'></tbody>

                        <small id='iTmFb'></small><noframes id='iTmFb'>

                      • <legend id='iTmFb'><style id='iTmFb'><dir id='iTmFb'><q id='iTmFb'></q></dir></style></legend>

                          <bdo id='iTmFb'></bdo><ul id='iTmFb'></ul>