OCP-1Z0-051-2015-56题
2015-12-10 15:57
357 查看
QUESTION NO: 56
Examine these statements:
CREATE ROLE registrar;
GRANT UPDATE ON student_grades TO registrar;
GRANT registrar to user1, user2, user3;
What does this set of SQL statements do?
A. The set of statements contains an error and does not work.
B. It creates a role called REGISTRAR, adds the MODIFY privilege on the STUDENT_GRADES
object to the role, and gives the REGISTRAR role to three users.
C. It creates a role called REGISTRAR, adds the UPDATE privilege on the STUDENT_GRADES
object to the role, and gives the REGISTRAR role to three users.
D. It creates a role called REGISTRAR, adds the UPDATE privilege on the STUDENT_GRADES
object to the role, and creates three users with the role.
E. It creates a role called REGISTRAR, adds the UPDATE privilege on three users, and gives the
REGISTRAR role to the STUDENT_GRADES object.
F. It creates a role called STUDENT_GRADES, adds the UPDATE privilege on three users, and
gives the UPDATE role to the registrar.
Answer: C
Explanation: the statement will create a role call REGISTRAR, grant UPDATE on
student_grades to registrar, grant the role to user1,user2 and user3.
Incorrect answer:
A the statement does not contain error 首先语句正确
B there is no MODIFY privilege
D statement does not create 3 users with the role
E privilege is grant to role then grant to user
F privilege is grant to role then grant to user
Examine these statements:
CREATE ROLE registrar;
GRANT UPDATE ON student_grades TO registrar;
GRANT registrar to user1, user2, user3;
What does this set of SQL statements do?
A. The set of statements contains an error and does not work.
B. It creates a role called REGISTRAR, adds the MODIFY privilege on the STUDENT_GRADES
object to the role, and gives the REGISTRAR role to three users.
C. It creates a role called REGISTRAR, adds the UPDATE privilege on the STUDENT_GRADES
object to the role, and gives the REGISTRAR role to three users.
D. It creates a role called REGISTRAR, adds the UPDATE privilege on the STUDENT_GRADES
object to the role, and creates three users with the role.
E. It creates a role called REGISTRAR, adds the UPDATE privilege on three users, and gives the
REGISTRAR role to the STUDENT_GRADES object.
F. It creates a role called STUDENT_GRADES, adds the UPDATE privilege on three users, and
gives the UPDATE role to the registrar.
Answer: C
Explanation: the statement will create a role call REGISTRAR, grant UPDATE on
student_grades to registrar, grant the role to user1,user2 and user3.
Incorrect answer:
A the statement does not contain error 首先语句正确
B there is no MODIFY privilege
D statement does not create 3 users with the role
E privilege is grant to role then grant to user
F privilege is grant to role then grant to user
相关文章推荐
- Android 反射实战 - 更换APP皮肤<3>
- 重载(overloading)和重写(overriding)
- Android研发规范
- Ubuntu apt-get 更改默认下载位置
- Unity3D 游戏开发架构篇 ——性格一流的设计和持久性
- 【Java并发编程二】同步容器和并发容器
- 从窗体泄漏谈android:configChanges属性
- 在自己网站上二维码扫描安装IOS APP PLIST
- Plus One
- 漫谈高数 特征向量物理意义
- Android开发之第三方跳转
- mysql建表一个timestamp类型字段会默认为当前时间,TIMESTAMP与DATETIME区别
- 关于Cookie注入学习心得
- 板子字符转码库移植
- 《C和指针》章节后编程练习解答参考——第10章
- 开启gzip
- js中 innerHTML与innerText的用法与区别及解决Firefox不支持Js的InnerHtml问题
- 基于live555封装的rtsp客户端rtspperf
- linux的top命令参数详解
- ROS学习笔记(一)Ubuntu软件源配置(一)