单项选择题
语句SELECT * FROM dept WHERE NOT EXISTS (SELECT * FROM emp WHERE deptno=dept.deptno)执行后的结果为()
A.只显示存在于EMP表中的部门全部信息
B.只显示不存在于EMP表中的部门全部信息
C.未返回任何数据
D.显示DEPT表中的全部信息
点击查看答案
相关考题
-
单项选择题
已创建序列S1,若当前值为2,先执行3次S1.CURRVAL,再执行3次S1.NEXTVAL,最后S1的值是()
A.3
B.4
C.5
D.6 -
单项选择题
数据库中有两个用户scott和myuser,物资表wz是属于myuser用户的,但当前用户是scott,要求查询物资表wz(wno,wname,wtype,wunit)物资单位wunit列为null的记录,取结果的前5条记录显示,以下正确的SQL语句是()
A.select*from scott.wz where wunit is null and rownum<5
B.select*from myuser.wz where wunit = null and rownum<5
C.select*from myuser.wz where wunit is null and rownum<6
D.select*form scott.wz where wunit is null and rownum<6 -
单项选择题
授予删除任何表的系统权限(DROP ANY TABLE)给user1,并使其能继续授该权限给其他用户,以下正确的SQL语句是()
A.Grant drop any table to user1
B.Grant drop any table to user1 with admin option
C.Grant drop table to user1
D.Grant drop any table to user1 with check potion
