相关文章  
  • 提升Win XP性能的20个特殊技巧
  • Windows操作系统的十则高级应用技巧
  • 通过 XML 发布新闻
  • Windows 2000操作系统优化实战
  • 制作万能克隆版WinXP超全面攻略
  • 细说Windows XP 虚拟内存优化
  • 戳穿优化Windows XP的经典谣言
  • Windows XP系统全面软优化
  • 再谈如何释放C盘空间 27招具体优化技巧
  • 详解Windows非法操作的具体含义
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    了解一下NULLs怎样影响IN和EXISTS2

    om dual where 1 is null;
      
      select 'true' from dual where null is null;
      
      当你使用IN时,相当于你告诉SQL接受一个值,并将它与某个清单中使用=的每一个值或一组值进行比较。只要存在了任何NULL值,就不会返回任何行,纵使两个值都是NULL也不行。
      
      select 'true' from dual where null in (null);
      
      select 'true' from dual where (null,null) in ((null,null));
      
      select 'true' from dual where (1,null) in ((1,null));
      
      一个IN从功能上等同于=ANY子句:
      
      select 'true' from dual where null = ANY (null);
      
      select 'true' from dual whe

    页码:[1] [2] [3] [4] [5] [6]2页、共6页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved