惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
G
Google Developers Blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
V
Visual Studio Blog
博客园 - Franky
S
SegmentFault 最新的问题
Jina AI
Jina AI
爱范儿
爱范儿
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
C
Check Point Blog
月光博客
月光博客
P
Proofpoint News Feed
T
The Blog of Author Tim Ferriss
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Martin Fowler
Martin Fowler

博客园 - 火草

The remote server returned an error: (400) Bad Request. --- RosettaNet 3.3 推荐大家一个打电话的好工具,太好了,比挂QQ更有意义 vss不能一次获取整个项目 中国古代谚语、成语、典故收集 诛仙 主题曲 瞎折腾出来的问题 使用FCKeditor 溧阳信息 博客中连续播放多首背景音乐 [外文经典]Kaoma - Lambada (打开后请把左边的播放器关掉,避免2首曲子一起播放^_^) 有趣有趣 修改Windows2003序列号的方法 显卡驱动失败 (王姓发源之一)三槐王发祥莘县地 卸载Oracle 9i 杀进程的超级命令 .net中修改项目名称 开始研究企业应用架构 一些好的娱乐网站(收集中...)
遇到个奇怪的问题,查询出来的数据不对
火草 · 2006-08-29 · via 博客园 - 火草

遇到个奇怪的问题,查询出来的数据不对

Posted on 2006-08-29 16:53  火草  阅读(290)  评论(0)    收藏  举报

昨天碰到一个sql语句:
select a.*
from (select * from customer_all where cu_type<>'CU') a left outer join customer_link b
on a.customer_code=b.customer_code where ( b.operation_type='AI' or a.cu_type in ('CL','DC','HD','JF','SJ','TR','WH'))
and a.cu_type='CU'
where后面的三个条件随便去掉那个都没问题,没记录,把这个三个条件放在一起,居然查出了数据,因为按select * from customer_all where cu_type<>'CU'来说后面是不存在满足条件a.cu_type='CU'的数据的,实在是搞不懂,惭愧惭愧