• <small id='IY72O'></small><noframes id='IY72O'>

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

    <tfoot id='IY72O'></tfoot>
        <bdo id='IY72O'></bdo><ul id='IY72O'></ul>
      1. 确定 Oracle null == null

        Determine Oracle null == null(确定 Oracle null == null)

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

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

                <bdo id='F4jev'></bdo><ul id='F4jev'></ul>
                    <tbody id='F4jev'></tbody>
                  <tfoot id='F4jev'></tfoot>
                  本文介绍了确定 Oracle null == null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我希望在可空列上搜索数据库表.有时,我要搜索的值本身就是 NULL.由于 Null 等于没有,即使是 NULL,说

                  I wish to search a database table on a nullable column. Sometimes the value I'm search for is itself NULL. Since Null is equal to nothing, even NULL, saying

                  where MYCOLUMN=SEARCHVALUE 
                  

                  会失败.现在我不得不求助于

                  will fail. Right now I have to resort to

                  where ((MYCOLUMN=SEARCHVALUE) OR (MYCOLUMN is NULL and SEARCHVALUE is NULL))
                  

                  有没有更简单的说法?

                  (如果重要的话,我正在使用 Oracle)

                  (I'm using Oracle if that matters)

                  推荐答案

                  你可以做 IsNull 或 NVL 的事情,但这只会让引擎做更多的工作.您将调用函数进行列转换,然后必须比较结果.

                  You can do the IsNull or NVL stuff, but it's just going to make the engine do more work. You'll be calling functions to do column conversions which then have to have the results compared.

                  用你所拥有的

                  where ((MYCOLUMN=SEARCHVALUE) OR (MYCOLUMN is NULL and SEARCHVALUE is NULL))
                  

                  这篇关于确定 Oracle null == null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 查询中包含缺失的月份)

                    <tfoot id='GbiM4'></tfoot>
                  1. <small id='GbiM4'></small><noframes id='GbiM4'>

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

                        • <bdo id='GbiM4'></bdo><ul id='GbiM4'></ul>
                        • <legend id='GbiM4'><style id='GbiM4'><dir id='GbiM4'><q id='GbiM4'></q></dir></style></legend>
                            <tbody id='GbiM4'></tbody>