oracle not in 查不出数据
来源:互联网 发布:jquery 转js 编辑:程序博客网 时间:2024/06/05 06:53
在oracle中,sql语句如下:
<pre name="code" class="plain">select * from xa_ajxx where ajxx_uuid not in (select ajxx_uuid from sl_zdajbgxq )却查不出应有的数据,查询结果为空。
原因是 sl_zdajbgxq中存在着ajxx_uuid为空的数据。导致not in无法查出数据。
改成用not exists即可
select * from xa_ajxx aj where not exists (select ajxx_uuid from sl_zdajbgxq zd where zd.ajxx_uuid = aj.ajxx_uuid)
0 0
- oracle not in 查不出数据
- oracle not in查不出任何数据问题
- oracle的 not in
- oracle not in 问题
- Oracle:in/Not in操作
- oracle in,exists,not in,not exists
- sql 中 not in 或者 not exists 查不出数据
- 慎用Oracle的not in
- Oracle NULL 和 NOT IN
- Oracle中 NOT IN 优化
- oracle 反联结 NOT IN、NOT EXISTS
- Oracle的in和not in(图)
- oracle的in 和not in
- MySQL用了not in查不出数据的原因
- Related to Oracle SQL 由Not in 引起取不到数据的错误
- Oracle sql"NOT IN"语句优化,查询A表有、B表没有的数据
- Oracle select in/exists/not in/not exits
- Oracle select in/exists/not in/not exits
- 常见JAVA框架
- Tomcat Server.xml详解
- hdu5319(求素数+威尔逊定理)
- poj-1442 Black Box
- LargeDatasets Tips
- oracle not in 查不出数据
- LeetCode题解:Implement strStr()
- UITableView的常用代理方法
- Android TextView文字局部变色方法
- Spring inject Date into bean property – CustomDateEditor
- MyBatis详解与配置MyBatis+Spring+MySql
- 在线语音听写
- eclipse Kepler tomcat内存溢出解决方案
- 事务隔离级别