授予删除任何表的系统权限(DROP ANY TABLE)给user1,并使其能继续授该权限给其他用户,以下正确的SQL语句是()A、Grant drop any table to user1B、Grant drop any table to user1 with admin optionC、Grant drop table to user1D、Grant drop any table to user1 with check potion

题目

授予删除任何表的系统权限(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

相似考题
更多“授予删除任何表的系统权限(DROP ANY TABLE)给user1,并使其能继续授该权限给其他用户,以下正确的SQL语句是()A、Grant drop any table to user1B、Grant drop any table to user1 with admin optionC、Grant drop table to user1D、Grant drop any table to user1 with check potion”相关问题
  • 第1题:

    找出正确的叙述()

    A DROP TABLE表示删除表的定义

    B DELETE FROM TABLE表示删除表的定义

    C DROP TABLE 等于DELETE FROM TABLE

    D DROP TABLE属于数据操纵语言


    参考答案A

  • 第2题:

    把表中“学历”字段的有效性规则取消,正确的SQL语句是( )。

    A.ALTER TABLE学生ALTER学历DROP CHECK

    B.ALTER TABLE学生DELETE学历DROP CHECK

    C.ALTER TABLE学生DELETE CHECK学历

    D.ALTER TABLE学生DROP CHECK学历


    正确答案:A
    修改表结构将字段的有效性规则删除的语句为:ALTERTABLE表名[ALTER[COLUMN]字段名1DROP[CHECK]],所以此题答案为A。

  • 第3题:

    “把查询sc表和更新sc表的grade列的权限授予用户user1”的正确SQL语句是( )。

    A.GRANT SELECT,UPDATE(grade)ON TABLE sc TO user1

    B.GRANT SELECT sc,UPDATE sc.grade TO user1

    C.GRANT SELECT,UPDATE ON TABLE sc.grade TO used

    D.GRANT SELECT ON TABLE sc,UPDATE ON TABLE sc(grade) TO user1


    正确答案:A
    GRANT 允许对象的创建者给某用户或某组或所有用户(PUBLIC)某些特定的权限.对象创建后,除了创建者外,除非创建者赋予(GRANT)权限,其他人没有访问对象的权限. 一旦用户有某对象的权限,他就可以使用那个特权.不需要给创建者赋予(GRANT)对象的权限,创建者自动拥有对象的所有权限,包括删除它的权限

  • 第4题:

    把查询SC表的权限授予用户U1,并允许该用户再将此权限授予其他用户。实现此功能的正确SQL语句是______。

    A.GRANT SELECT TO TABLE SC ON U1 WITH PUBLIC

    B.GRANT SELECT ON TABLE SC TO U1 WITH PUBLIC

    C.GRANT SELECT TO TABLE SC ON U1 WITH GRANT OPTION

    D.GRANT SELECT ON TABLE SC TO U1 WITH GRANT OPTION


    正确答案:D
    解析:SQL语言用GRANT语句向用户授予操作权限,该语句的一般格式如下:GRANT权限[,权限]…[ON对象类型对象名]TO用户[,用户]…[wITHGRANTOPTION];选项A和C中的短语(TOTABLE)不符合语法规则,选项B的WITH子句后面使用了错误的短语PUBLIC,选项D能实现题目所指定的功能。

  • 第5题:

    “把查询sc表和更新sc表的grade列的权限授予用户user”的正确SQL语句是( )。

    A)GRANT SELECT sc,UP DATE sc.Grade TO user

    B)GRANT SELECT,UP DATE (grade) ON TABLE sc TO user

    C)GRANT SELECT,UP DATE ON TABLE sc.Grade TO user

    D)GRANT SELECT ON TABLE sc,UP DATE ON TABLE sc(grade) TO user


    正确答案:B

  • 第6题:

    若将Workers表的插入权限赋予用户User1,并允许其将该权限授予他人,那么对应的SQL语句为“GRANT(请作答此空)TABLE Workers TO User1( );”。

    A.INSERT
    B.INSERT ON
    C.UPDATE
    D.UPDATE ON

    答案:B
    解析:

  • 第7题:

    “把查询sc表和更新sc表的grade列的权限受予用户user1”的正确SQL语句是()。

    • A、GRANT SELECT,UPDATE(grade)ON TABLE sc TOuser1
    • B、GRANT SELECT sc,UPDATE sc,grade TO user1
    • C、GRANT SELECT,UPDATE ON TABLE sc.grade TO user1
    • D、GRANT SELECT ON TABLE sc,UPDATE ON TABLE sc(grade)TO user1

    正确答案:D

  • 第8题:

    在数据定义语言中,属于修改表结构的命令有()

    • A、CREATE TABLE
    • B、DROP TABLE
    • C、ALTER TABLE
    • D、GRANT TABLE

    正确答案:C

  • 第9题:

    SQL语句删除索引的语句是()

    • A、DROP TABLE 
    • B、DROP VIEW 
    • C、DROP INDEX 
    • D、ALTER TABLE

    正确答案:C

  • 第10题:

    假设在数据库中创建了用户test,需要为其授予CREATE ANY TABLE系统权限,可以使用如下()语句。

    • A、GRANT CREATE ANY TABLE test
    • B、GRANT CREATE ANY TABLE TO test
    • C、TAKE CREATE ANY TABLE TO test
    • D、ALTER CREATE ANY TABLE TO test

    正确答案:B

  • 第11题:

    You execute the following command toauditdatabase activities:  SQL>AUDITDROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL;  What is the effect of this command()

    • A、Oneauditrecord is created for every successful DROP TABLE command executed in the session ofSCOTT.
    • B、Oneauditrecord is generated for the session when SCOTT grants the DROP ANY TABLE privilege toother users.
    • C、One audit record is created for the whole session if user SCOTT successfully drops one or more tablesin his session.
    • D、One audit record is created for every session of any other user in which a table owned by SCOTT isdropped successfully.
    • E、One audit record is created for every successful DROP TABLE command executed by any user to droptables owned by SCOTT.

    正确答案:C

  • 第12题:

    单选题
    执行下列 SQL 语句之后: GRANT ALL PRIVILEGES ON TABLE student TO USER user1 假设用户USER1没有其他权限,下列哪一项操作是USER1可以执行的?()
    A

    将表STUDENT的所有权限赋予其他用户

    B

    删除关联到表STUDENT的视图

    C

    删除表STUDENT

    D

    以上都不是


    正确答案: A
    解析: 暂无解析

  • 第13题:

    根据SQL标准,删除表student中对字段sno的唯一性约束,应该使用下面哪条语句? ()

    A drop sno from table student

    B alter table student drop sno

    C alter table student drop unique(sno)

    D alter table student drop sno unique


    参考答案C

  • 第14题:

    “把查询sc表和更新sc表的grade列的权限受予用户user1”的正确SQL语句是______。

    A.GRANT SELECT, UPDATE(grade)ON TABLE sc TO user1

    B.GRANT SELECT sc, UPDATE sc, grade TO user1

    C.GRANT SELECT, UPDATE ON TABLE sC.grade TO user1

    D.GRANT SELECT ON TABLE sc, UPDATE ON TABLE sc(grade) TO user1


    正确答案:A
    解析:SQL语言用GRANT语句向用户授予数据访问权限,GRANT语句的一般格式为:
    GRANT权限>[,权限>]…
    [ON对象类型>对象名>][,对象名>]…
    TO用户>[,用户>]…
    [WITH GRANT OPTION]
    所以正确的是选项A)。

  • 第15题:

    下列的SQL语句中,( )不是数据定义语句。

    A. CREATE TABLE B. DROP VIEW

    C. CREATE VIEW D. GRANT


    正确答案:
     

  • 第16题:

    假设在数据库中创建了用户test,需要为其授予CREATE ANY TABLE系统权限,可以使用如下()语句。

    A.GRANT CREATE ANY TABLE test

    B.GRANT CREATE ANY TABLE TO test

    C.TAKE CREATE ANY TABLE TO test

    D.ALTER CREATE ANY TABLE TO test


    参考答案:B

  • 第17题:

    若将Workers表的插入权限赋予用户User1,并允许其将该权限授予他人,那么对应的SQL语句为“GRANT( )TABLE Workers TO User1(请作答此空);”。

    A.FOR ALL
    B.PUBLIC
    C.WITH CHECK OPTION
    D.WITH GRANT OPTION

    答案:D
    解析:

  • 第18题:

    将Students表的查询权限授予用户U1和U2,并允许该用户将此权限授予其他用户。实现此功能的SQL语句是:( )。

    A.GRANT SELECT TO TABLE Students ON U1,U2 WITH PUBLIC;
    B.GRANT SELECT ON TABLE Students TO U1,U2 WITH PUBLIC;
    C.GRANT SELECT TO TABLE Students ON U1,U2 WITH GRANT OPTION;
    D.GRANT SELECT ON TABLE Students TO U1,U2 WITH GRANT OPTION;

    答案:D
    解析:
    授权语句的基本语法如下。GRANT<权限>ON<对象>TO<用户名>:依题意,将Students表的查询权限授予用户U1和U2,并允许该用户将此权限授予其他用户。实现此功能的SQL语句如下。GRANT SELECT ON TABLE Students TO U1,U2 WITH GRANT OPTION;

  • 第19题:

    下面哪些SQL命令向名为ACCTSUPER的用户授予系统权限()

    • A、GRANT INSERT ON emp TO acctsuper
    • B、GRANT CREATE TABLE TO acctsuper
    • C、GRANT SELECT ON emp TO acctsuper
    • D、GRANT UPDATE ANY TABLE TO acctsuper
    • E、GRANT CREATE SESSION TO acctsuper

    正确答案:B,D,E

  • 第20题:

    SQL语句删除表的语句是()

    • A、DROP TABLE            
    • B、DROP VIEW 
    • C、DROP INDEX  
    • D、ALTER TABLE

    正确答案:A

  • 第21题:

    You execute the following command to audit database activities: SQL> AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL; What is the effect of this command()

    • A、One audit record is created for every successful DROP TABLE command executed in the session of SCOTT.
    • B、One audit record is generated for the session when SCOTT grants the DROP ANY TABLE privilege to otherusers.
    • C、One audit record is created for the whole session if user SCOTT successfully drops one or more tables inhis session.
    • D、One audit record is created for every session of any other user in which a table owned by SCOTT isdropped successfully.
    • E、One audit record is created for every successful DROP TABLE command executed by any user to drop Tables owned by SCOTT

    正确答案:C

  • 第22题:

    Examine the commands executed in the following sequence:  1:SQL> CREATE ROLE mgrrole;  2:SQL> GRANT create user,select any table,connect,resource TO mgrrole;  3:SQL> GRANT select,update ON sh.sales TO mgrrole;  4:SQL> CREATE ROLE ceo IDENTIFIED BY boss;  5:SQL> GRANT mgrrole,drop any table,create any directory TO ceo;  6:SQL> GRANT ceo TO mgrrole;  Which statement is true about the above commands()

    • A、The commands execute successfully.
    • B、Command 6 produces an error because of circular role grant.
    • C、Command 5 produces an error because a role cannot be granted to another role.
    • D、Command 3 produces an error because the MGRROLE role already contains system privileges.
    • E、The table created by HR remains and HR still has the CREATE TABLE system privilege.
    • F、The table created by HR remains and HR can grant the CREATE TABLE system privilege to other users.

    正确答案:B

  • 第23题:

    假设需要删除Customer表中的LogoutTime列,可以使用如下()方式。

    • A、ALTER TABLE CUSTOMER DROP column LOGOUTTIME
    • B、UPDATE TABLE DROP column LOGOUTTIME
    • C、ALTER TABLE CUSTOMER DROP LOGOUTTIME
    • D、UPDATE TABLE DROP LOGOUTTIME

    正确答案:A