数据库 SQL not in
来源:互联网 发布:淘宝零食店一箱零食 编辑:程序博客网 时间:2024/05/18 03:38
在SQL 中,not in 语句用法:
select * from hd123 where 号码 not in ( select phone from pusersinfo );
语句作用是查询出表hd123中号码不在pusersinfo中;但是有时候这个结果是错误的;
正确的语句是下面:
select * from hd123 where 号码 not in ( select phone from pusersinfo where phone is not null )。
过滤掉phone 是NULL的数据!
- 数据库 SQL not in
- 数据库——SQL中in,not in,exists, not exists的区别
- sql优化not in
- SQL 替代not in
- SQL Not in null
- SQL提高查询效益之in、not in、between、like等条件讲述 数据库Sql,VFP,Access
- SQL提高查询效益之in、not in、between、like等条件讲述 数据库Sql,VFP,Access
- SQL优化之 not in
- sql not exists取代 in
- sql替换NOT IN语句
- spark-sql not in 优化
- sql not in、left join、not exists
- SQL 中not exist 与 not in
- 替代sql的in,not in操作
- sql----改写 in ,exists,not in ,not exists
- sql中 in , not in , exists , not exists效率分析
- SQL in ASP: LIKE, NOT LIKE & BETWEEN
- SQL NOT IN NULL的问题
- svn: Can't open file '/var/www/svn/experience/db/txn-current-lock': Permission denied
- 静态绑定 动态绑定
- 据说看完这21个故事的人,30岁前都成了亿万富翁。你是下一个吗?
- shell script
- ASCII与中文的相互转换
- 数据库 SQL not in
- 思考
- Java学习笔记 2011.06.22
- jsp连接数据库大全
- develop.newLifeGroup.com.cn
- 一个简易画板的实现(Graphics View)
- 英特尔软交会展示MeeGo平板 中国大陆已可预订
- Address Already in use JVM_bing:8080的解决方法
- windows 7 cmd 下执行 crtmqm -q TestMqm报AMQ8101: 发生 WebSphere MQ 错误(893)。