OCP 1Z0 051 QUESTION NO: 49
来源:互联网 发布:淘宝多少个差评封店 编辑:程序博客网 时间:2024/05/16 13:03
QUESTION NO: 49
Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables:
Which DELETE statement is valid?
A. DELETE FROM employees WHERE employee_id = (SELECT employee_id FROM employees);
B. DELETE * FROM employees WHERE employee_id = (SELECT employee_id FROM new_employees);
C. DELETE FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE name = ‘Carrey’);
D. DELETE * FROM employees WHERE employee_id IN (SELECT employee_idFROM new_employees WHERE name = ‘Carrey’);
1、当子查询中可能有多行值时,不能使用 等号 判断,要改为in 或 = (any/some)
2、delete 后不能用 *
Answer: C
Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables:
Which DELETE statement is valid?
A. DELETE FROM employees WHERE employee_id = (SELECT employee_id FROM employees);
B. DELETE * FROM employees WHERE employee_id = (SELECT employee_id FROM new_employees);
C. DELETE FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE name = ‘Carrey’);
D. DELETE * FROM employees WHERE employee_id IN (SELECT employee_idFROM new_employees WHERE name = ‘Carrey’);
1、当子查询中可能有多行值时,不能使用 等号 判断,要改为in 或 = (any/some)
SQL> delete from dept where deptno = any(select deptno from emp);3 rows deletedSQL> rollback;Rollback completeSQL> delete from dept where deptno = some(select deptno from emp);3 rows deleted
2、delete 后不能用 *
SQL> delete * from dept;delete * from deptORA-00903: invalid table name
Answer: C
0 0
- OCP 1Z0 051 QUESTION NO: 49
- OCP 1Z0 051 QUESTION NO: 1
- OCP 1Z0 051 QUESTION NO: 2
- OCP 1Z0 051 QUESTION NO: 3
- OCP 1Z0 051 QUESTION NO: 4
- OCP 1Z0 051 QUESTION NO: 5
- OCP 1Z0 051 QUESTION NO: 6
- OCP 1Z0 051 QUESTION NO: 7
- OCP 1Z0 051 QUESTION NO: 8
- OCP 1Z0 051 QUESTION NO: 9
- OCP 1Z0 051 QUESTION NO: 10
- OCP 1Z0 051 QUESTION NO: 11
- OCP 1Z0 051 QUESTION NO: 12
- OCP 1Z0 051 QUESTION NO: 13
- OCP 1Z0 051 QUESTION NO: 14
- OCP 1Z0 051 QUESTION NO: 15
- OCP 1Z0 051 QUESTION NO: 16
- OCP 1Z0 051 QUESTION NO: 17
- Linux下的压缩解压缩命令详解
- HDOJ Train Problem II(Java)
- 修改在客户端显示“hello world”在server中是把几个块先合并成一个完整的数据再修
- 苹果公司昨宣布:iOS 8面世
- storyboard页面传值及多个storyboard链接
- OCP 1Z0 051 QUESTION NO: 49
- 拨打电话
- VC6.0汉字乱码解决办法
- 找出两有序数组第k小
- 最小根文件系统制作
- 【科普文】怎样能通俗介绍一下Ad Network?
- Android TextView属性详解
- Nginx vs Apache
- 和为给定值的所有组合