oracle的环境下判空
来源:互联网 发布:淘宝开店认证怎么修改 编辑:程序博客网 时间:2024/09/21 08:51
oracle 默认把 空字符串都当成 null 处理。mysql倒不一样。
mysql 里面 执行
select count(*) from t_usr_pmsf where f_p_projman <> ''; 7
select count(*) from t_usr_pmsf where f_p_projman = ''; 3
select count(*) from t_usr_pmsf where f_p_projman is not null ; 10
select count(*) from t_usr_pmsf where f_p_projman is null; 3
select count(*) from t_usr_pmsf ; 13
oracle 里面执行
select count(*) from t_usr_pmsf where f_p_projman <> ''; 0
select count(*) from t_usr_pmsf where f_p_projman = ''; 0
select count(*) from t_usr_pmsf where f_p_projman is not null ; 382
select count(*) from t_usr_pmsf where f_p_projman is null; 33
select count(*) from t_usr_pmsf ; 415
所以在mysql环境下写的代码需要全部重新改动判空。
判空方式 IFieldFilter ff= dq.createFieldFilter("p_projman", SATConstants.SQL_OP_IS_NULL, null);
ff.setNot(true); //取反
dq.addFilter(ff);
- oracle的环境下判空
- oracle 环境的搭建
- ORACLE测试环境的搭建
- php+oracle的lib环境
- win2000环境下的oracle自动备份
- windows环境下的oracle服务
- windows环境下的oracle服务
- windows环境下的oracle服务
- windows环境下的oracle服务
- windows环境下的oracle服务
- windows环境下的oracle服务
- oracle透明网关环境的建立
- VS2005和Oracle的环境配置
- oracle&linux环境vm相关的调整
- oracle linux下的用户环境
- win7+ oracle +php环境的搭建
- Metasploit攻击Oracle的环境搭建
- ORACLE--SQL*PLUS的环境命令
- 【总结】IE和Firefox的Javascript兼容性总结
- 用static定义静态局部变量求阶乘
- 五大奇葩程序猿注释
- HttpServletRequest接口学习
- 操作系统中的 中断 学习
- oracle的环境下判空
- 程序员编程艺术:第二章、字符串是否包含及匹配/查找/转换/拷贝问题
- How to open application with notification from LocalNotifications plugin in PhoneGap
- 快速设计对话框-qt designer-vs2008
- CMS初步认识 (3)之 dedeCMS的标签 11-26
- C#基础知识整理 基础知识(18) 值类型的装箱和拆箱(一)
- 如何修改镜像连接超时值mirroring_connection_timeout
- javascript select下拉选择框多级联动
- 关于代码重构的一点感想