oracle 空字符'' 和Null
2016-03-25 17:25
260 查看
Oracle 查询
select * from user where user.id !='' or user.id != null
使用上述sql 查询user表中没有数据,
必须使用
select * from user where user.id is not null 才有数据
原因:Oracle中‘’不大小,对于null只能用is null 或则 is not ull
select * from user where user.id !='' or user.id != null
使用上述sql 查询user表中没有数据,
必须使用
select * from user where user.id is not null 才有数据
原因:Oracle中‘’不大小,对于null只能用is null 或则 is not ull
相关文章推荐
- Oracle中TO_DATE TO_CHAR格式
- Oracle Telnet 1521 失败
- Oracle学习(三)
- 【转】oracle 分析函数中 keep关键字的使用
- oracle--job以及物化视图
- Oracle EBS订单的流程(Order->AR)
- oracle拆分逗号分隔字符串 实现split
- Oracle 删除重复数据只留一条
- Oracle 表锁与解锁
- Oracle 表锁与解锁
- Oracle中生成GUID类型
- oracle 查询语句 条件里有时间的转换
- ORACLE 数据库 SYS 用户密码忘记解决方案
- 解决oracle高版本的向低版本拷贝数据的方法
- Oracle 取随机数(转)
- linux下安装oracle11G R2全过程整理
- Oracle 数据库共享内存分配不足
- oracle中nvl()函数
- Oracle的添加主键
- Oracle不足与MySQL优势