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

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

博客园 - 火草

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'的数据的,实在是搞不懂,惭愧惭愧