IBM(000-730)

单选题Which of the following statements allows BOB to revoke access to the SAMPLE database from user TOM?()A REVOKE ACCESS ON DATABASE FROM USER bobB REVOKE CONNECT ON DATABASE FROM USER tomC REVOKE tom FROM ACCESS ON DATABASE BY USER bobD REVOKE tom FROM CO

题目
单选题
Which of the following statements allows BOB to revoke access to the SAMPLE database from user TOM?()
A

REVOKE ACCESS ON DATABASE FROM USER bob

B

REVOKE CONNECT ON DATABASE FROM USER tom

C

REVOKE tom FROM ACCESS ON DATABASE BY USER bob

D

REVOKE tom FROM CONNECT ON DATABASE BY USER bob

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Assuming PUBLIC has been granted all privileges on table T1, which of the following statements would continue to permit any user to add rows to table T1, but not remove them?()

A.REVOKE DROP ON t1 FROM PUBLIC

B.REVOKE UPDATE ON t1 FROM PUBLIC

C.REVOKE DELETE ON t1 FROM PUBLIC

D.REVOKE CONTROL ON t1 FROM PUBLIC


参考答案:C

第2题:

Which of the following statements is used to revoke all DML privileges on table EMPLOYEE from user TOM?()

A.REVOKE ALL PRIVILEGES FROM USER tom

B.REVOKE ALL ON EMPLOYEE FROM USER tom

C.REVOKE EXECUTE ON EMPLOYEE FROM USER tom

D.REVOKE PRIVILEGES ON EMPLOYEE FROM USER tom


参考答案:B

第3题:

实现“取消用户USER4对学生表STUD中学号(XH)的修改权限”这一功能的SQL语句是( )。

A.REVOKE UPDATE (XH) ON TABLE FROM USER4;

B.REVOKE UPDATE (XH) ON TABLE STUD FROM PUBLIC ;

C.REVOKE UPDATE (XH) ON TABLE STUD FROM USER4;

D.REVOKE ALL PRIVILEGES ON TABLE STUD FROM USER4;


正确答案:C
解析:在SQL中取消用户对数据的权限的命令是REVOKE UPDATE ()。本题中括号内的参数应该是XH,取消的用户是USER4,取消的操作权限是STUD,位置是在TABLE表上。所以全部正确的就是C选项。

第4题:

Which of the following statements allows BOB to revoke access to the SAMPLE database from user TOM?()

  • A、REVOKE ACCESS ON DATABASE FROM USER bob
  • B、REVOKE CONNECT ON DATABASE FROM USER tom
  • C、REVOKE tom FROM ACCESS ON DATABASE BY USER bob
  • D、REVOKE tom FROM CONNECT ON DATABASE BY USER bob

正确答案:B

第5题:

下列SQL语句中,能够实现“收回用户ZHAO对学生表(STUD)中学号(XH) 的修改权”这一功能的是()

  • A、REVOKE UPDATE(XH) ON TABLE FROM ZHAO       
  • B、REVOKE UPDATE(XH) ON TABLE FROM PUBLIC
  • C、REVOKE UPDATE(XH) ON STUD FROM ZHAO         
  • D、REVOKE UPDATE(XH) ON STUD FROM PUBLIC

正确答案:C

第6题:

Which of the following statements allows BOB to revoke access to the SAMPLE database from user TOM?()

A.REVOKE ACCESS ON DATABASE FROM USER bob

B.REVOKE CONNECT ON DATABASE FROM USER tom

C.REVOKE tom FROM ACCESS ON DATABASE BY USER bob

D.REVOKE tom FROM CONNECT ON DATABASE BY USER bob


参考答案:B

第7题:

Users of your web application have requested that they should be able to set the duration of their sessions.So for example, one user might want a webapp to stay connected for an hour rather than the webapp’sdefault of fifteen minutes; another user might want to stay connected for a whole day. Furthermore, youhave a special login servlet that performs user authentication and retrieves the User object from the database. You want to augment this code to set up the user’s specified session duration. Which codesnippet in the login servlet will accomplish this goal?()

  • A、User user = // retrieve the User object from the database session.setDurationInterval(user.getSessionDuration());
  • B、User user = // retrieve the User object from the database session.setMaxDuration(user.getSessionDuration());
  • C、User user = // retrieve the User object from the database session.setInactiveInterval(user.getSessionDuration());
  • D、User user=//retrieve the User object from the database session.setDuration(user.getSessionDuratio());
  • E、User user = // retrieve the User object from the database session.setMaxInactiveInterval(user.getSessionDuration());

正确答案:E

第8题:

The user Sue issues this SQL statement:GRANT SELECT ON sue. EMP TO alice WITH GRANT OPTION; The user Alice issues this SQL statement:GRANT SELECT ON sue. EMP TO reena WITH GRANT OPTION; The user Reena issues this SQL statement:GRANT SELECT ON sue. EMP TO timber;The user Sue issues this SQL statement:REVOKE select on sue. EMP FROM alice;For which users does the revoke command revoke SELECT privileges on the SUE.EMP table?()

A. Alice only

B. Alice and Reena

C. Alice, Reena, and Timber

D. Sue, Alice, Reena, and Timber


参考答案:C

第9题:

Which of the following statements is used to prevent user TOM from adding and deleting data in table TAB1?()

  • A、REVOKE ADD, DELETE FROM USER tom ON TABLE tab1
  • B、REVOKE ADD, DELETE ON TABLE tab1 FROM USER tom
  • C、REVOKE INSERT, DELETE FROM USER tom ON TABLE tab1
  • D、REVOKE INSERT, DELETE ON TABLE tab1 FROM USER tom

正确答案:D

第10题:

Which of the following statements allows USER1 to take away read access on the table ORG.TAB1 from USER2?()

  • A、REVOKE SELECT FROM user2 ON TABLE org.tab1
  • B、REVOKE SELECT ON TABLE org.tab1 FROM user2
  • C、REVOKE READ ACCESS FROM user2 ON TABLE org.tab1
  • D、REVOKE READ ACCESS ON TABLE org.tab1 FROM user2

正确答案:B

更多相关问题