https://img2020.cnblogs.com/blog/1101843/202010/1101843-20201029092119794-1182278230.jpg

支付宝

https://img2020.cnblogs.com/blog/1101843/202010/1101843-20201029091740174-1560674849.png

微 信

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的所有结果

 

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

 

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

 

posted @ 2018-08-16 17:04  huangwanlin  阅读(227)  评论(0编辑  收藏  举报
Copyright 2012-2021 林云希科技有限责任公司