not exists 的用法
来源:互联网 发布:基础建筑学软件 编辑:程序博客网 时间:2024/05/22 04:28
使用背景:从表1中选择不在表2的数据
例:
表1
C1 C2
1 1
1 2
1 3
表2
C1 C2
1 1
这里我要从表1中选的数据是1,2跟1,3这两条
SQL语句如下: SELECT * FROM 表1 WHERE NOT EXISTS(SELECT * FROM 表2 WHER 表2.C2 = 表1.C2)
阅读全文
0 0
- exists,not exists的用法
- exists,not exists的用法
- not exists 的用法
- exists/not exists的用法和原理
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists、not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- sql中exists,not exists的用法
- PAT乙级 1018. 锤子剪刀布 (20)
- arcgis添加瓦片图层解决图层加载缓慢问题
- httpd(apache)--知识总结(3)--https
- android-apt切换为官方annotationProcessor
- 为什么子类的构造方法一定会调用父类的某个构造方法
- not exists 的用法
- C++文件读写与getline()
- 关于本地调用和远程调用的那点事------这里的“程”, 与其理解为路程, 不如理解为进程
- PAT乙级 1019. 数字黑洞 (20)
- Android Crash日志收集
- epoll vs select———— epoll内核源码理解
- 新人上手TensorFlow 之 简单了解一下Batch Normalization (BN)
- 创建和销毁对象
- 字符数组中[]内尽可能填写一个较大的数字