• <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

        时间:2023-09-20

          <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:与 SQL Server 的 IsNull() 函数等效的 Oracle 是什么? 下一篇:检查是否“这是一个数字"Oracle 中的函数

                  相关文章

                    <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>
                    1. <legend id='GbiM4'><style id='GbiM4'><dir id='GbiM4'><q id='GbiM4'></q></dir></style></legend>