exits函数
来源:互联网 发布:26周四维彩超标准数据 编辑:程序博客网 时间:2024/06/03 20:33
把部门位置位于达拉斯的所有员工工资涨到1.2
update emp set sal=sal*1.2 where exists (select 1 from dept where deptno=emp.deptno and loc='DALLAS');
等同于update emp a set sal=sal*1.2 where exists (select 1 from dept b where b.deptno=a.deptno and loc='DALLAS');
------------------ exists半连接----------------------------
查询部门在纽约的雇员信息
select * from emp a where exists (select 1 from dept b where a.deptno=b.deptno and loc='NEW YORK'); ----exists子句返回一个true,前面的主句就会返回信息
结果等同于
select a.* from emp a,dept b where a.deptno=b.deptno and loc='NEW YORK';
但是前者效率高
0 0
- exits函数
- exit & exits
- USER EXITS
- mysql exits
- User Exits Customer Exits BAdI
- User Exits和Customer Exits
- user exits, customer exits, badi
- Finding User Exits...
- SD User exits
- if not exits
- IDoc Inbound User Exits
- Enhancements using customer exits
- oracle中的exits
- SQL EXITS用法
- Exits和In
- in exits区别
- exits返回布尔值
- 深入解释sql运算符 ALL()、ANY()、Exits()、Not Exits()
- Linux USB 鼠标驱动程序解析
- 跟张志东深聊,腾讯的“进化力”
- 给自己一片悬崖
- 64位win7下安装32位oracle10g
- linux sed命令详解
- exits函数
- 美丽一次
- 《STL源码剖析》之迭代器简单实现
- 第七周上机实践项目——成员函数、友元函数和一般函数有区别
- 程序资源自释放
- 指令执行判断(转自鸟哥)
- Linux 下压缩与解压.zip和.rar及.7z文件
- ajax 同步执行(顺序执行)
- 以秒为单位的时间量所包含的分钟数和剩余秒数