zoukankan      html  css  js  c++  java
  • oracle查询语句注意事项:

    我想查出datatype 不等于1的所有结果,包括空。

    select * from user where datatype <> '1'; //这条sql查不出datatype为空的数据
    
    

     发现oracle需要使用  is  null  、is  not null查询空或非空

    select * from user where datatype <> '1' or datatype  is null;//这样就能查出datatype不等于1的所有结果

    ------------------------------------------------------------------------------------------------------------------------------------

    -----------------------------------------------------------------------------

  • 相关阅读:
    64_l2
    64_l1
    64_k2
    64_k1
    64_j2
    64_j1
    64_g6
    64_g5
    64_g4
    64_g3
  • 原文地址:https://www.cnblogs.com/Alwaysbecoding/p/9488447.html
Copyright © 2011-2022 走看看