最新OCP考试题库:11g-1Z0-051-第17题
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询最新OCP考试题库:11g-1Z0-051-第17题,完整题库请点击这里联系老师咨询了解
17、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 employeesWHERE 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 employeesWHERE employee_id IN (SELECT employee_idFROM new_employeesWHERE name = ‘Carrey’);
Answer: C
试题解析:
delete删除表中记录是使用delete form表名,而不是delete * form 表名
另外子查询中必须为返回单条的记录,所以C正确。