下列哪个语句将赋予用户John向表tab1中插入数据的权限?()A、GRANT ADD ON TABLE tab1 TO JohnB、GRANT INSERT ON tab1 TO JohnC、GRANT ADD ON TABLE tab1 TO USER JohnD、GRANT INSERT ON TABLE tab1 TO USER John

题目

下列哪个语句将赋予用户John向表tab1中插入数据的权限?()

  • A、GRANT ADD ON TABLE tab1 TO John
  • B、GRANT INSERT ON tab1 TO John
  • C、GRANT ADD ON TABLE tab1 TO USER John
  • D、GRANT INSERT ON TABLE tab1 TO USER John

相似考题
更多“下列哪个语句将赋予用户John向表tab1中插入数据的权限?()A、GRANT ADD ON TABLE tab1 TO JohnB、GRANT INSERT ON tab1 TO JohnC、GRANT ADD ON TABLE tab1 TO USER JohnD、GRANT INSERT ON TABLE tab1 TO USER John”相关问题
  • 第1题:

    ●将表employee中name列的修改权限赋予用户Liu,并允许其将该权限授予他人,应使用的SQL语句为:

    GRANT (52) ON TABLE employee TO Liu (53) ;

    (52)

    A.UPDATE(name)

    B.DELETE

    C.SELECT

    D.INSERT

    (53)

    A.FORALL

    B.CASCADE

    C. WITH GRANT OPTION

    D.WITH CHECK OPTION


    正确答案:A,C

  • 第2题:

    把查询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能实现题目所指定的功能。

  • 第3题:

    Which of the following statements is used to grant user TOM and Application team APPGRP the ability to add data to table TAB1?()

    A.GRANT ADD DATA ON TABLE tab1 TO GROUP tom appgrp

    B.GRANT INSERT TO USER tom, GROUP appgrp ON TABLE tab1

    C.GRANT INSERT ON TABLE tab1 TO USER tom, GROUP appgrp

    D.GRANT ADD DATA ON TABLE tab1 TO USER appgrp, GROUP tom


    参考答案:C

  • 第4题:

    你定义了一个对象类型myOBJ,要基于该类型来创建表tab1,语句为()。

    A.CREATE TABLE tab1 OF myOBJ

    B.CREATE TABLE myOBJ OF tab1

    C.CREATE TABLE tab1 AS myOBJ

    D.CREATE TABLE tab1 TYPE OF myOBJ


    参考答案:C

  • 第5题:

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

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

    答案:D
    解析:

  • 第6题:

    将Students表的插入权限赋予用户UserA,并允许其将该权限授予他人,应使用的SQL语句为:
    GRANT__1___TABLE Students TO UserA__2___;
    2、_____

    A.FORALL
    B.PUBLIC
    C.WITH CHECK OPTION
    D.WITH GRANT OPTION

    答案:D
    解析:
    本题考查关系代数运算与SQL查询方面的基础知识。授权语句的格式如下:GRANT<权限>[,<权限>]...[ON<对象类型><对象名>]TO<用户>[,<用户]>]...[WITH GRANT OPTION];若在授权语句中指定了“WITH GRANT OPTION”子句,那么,获得了权限的用户还可以将该权限赋给其他用户。

  • 第7题:

    Which of the following statements is used to grant user TOM and Application team APPGRP the ability to add data to table TAB1?()

    • A、GRANT ADD DATA ON TABLE tab1 TO GROUP tom appgrp
    • B、GRANT INSERT TO USER tom, GROUP appgrp ON TABLE tab1
    • C、GRANT INSERT ON TABLE tab1 TO USER tom, GROUP appgrp
    • D、GRANT ADD DATA ON TABLE tab1 TO USER appgrp, GROUP tom

    正确答案:C

  • 第8题:

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

    正确答案:B

  • 第9题:

    Given the following statements: CREATE TABLE tab1 (col1 INT); CREATE TABLE tab2 (col1 INT); CREATE TRIGGER trig1 AFTER UPDATE ON tab1 REFERENCING NEW AS new1 FOR EACH ROW MODE DB2SQL INSERT INTO tab2 VALUES(new1.col1); INSERT INTO tab1 VALUES(2),(3); What is the result of the following query? SELECT count(*) FROM tab2;()

    • A、3
    • B、2
    • C、1
    • D、0

    正确答案:D

  • 第10题:

    你定义了一个对象类型myOBJ,要基于该类型来创建表tab1,语句为()。

    • A、CREATE TABLE tab1 OF myOBJ
    • B、CREATE TABLE myOBJ OF tab1
    • C、CREATE TABLE tab1 AS myOBJ
    • D、CREATE TABLE tab1 TYPE OF myOBJ

    正确答案:C

  • 第11题:

    单选题
    Given the following two tables: TAB1 C1 C2 1 Antarctica 2 Africa 3 Asia 4 Australia TAB2 CX CY 5 Europe 6 North America 7 South America Which of the following SQL statements will insert all rows found in table TAB2 into table TAB1?()
    A

    INSERT INTO tab1 SELECT cx, cy FROM tab2

    B

    INSERT INTO tab1 VALUES (tab2.cx, tab2.cy)

    C

    INSERT INTO tab1 VALUES (SELECT cx, cy FROM tab2)

    D

    INSERT INTO tab1 (c1, c2) VALUES (SELECT cx, cy FROM tab2)


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

  • 第12题:

    单选题
    Which of the following statements is used to grant user TOM and Application team APPGRP the ability to add data to table TAB1?()
    A

    GRANT ADD DATA ON TABLE tab1 TO GROUP tom appgrp

    B

    GRANT INSERT TO USER tom, GROUP appgrp ON TABLE tab1

    C

    GRANT INSERT ON TABLE tab1 TO USER tom, GROUP appgrp

    D

    GRANT ADD DATA ON TABLE tab1 TO USER appgrp, GROUP tom


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

  • 第13题:

    ● 将Students表的插入权限赋予用户UserA,并允许其将该权限授予他人,应使用的SQL语句为:

    GRANT (15)TABLE Students TO UserA (16) ;

    (15)

    A.UPDATE

    B.UPDATE ON

    C.INSERT

    D.INSERT ON

    (16)

    A.FOR ALL

    B.PUBLIC

    C.WITH CHECK OPTION

    D.WITH GRANT OPTION


    正确答案:D,D

  • 第14题:

    将查询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

  • 第15题:

    Given the following statements:CREATE TABLE tab1 (col1 INT); CREATE TABLE tab2 (col1 INT); CREATE TRIGGER trig1 AFTER UPDATE ON tab1 REFERENCING NEW AS new1 FOR EACH ROW MODE DB2SQL INSERT INTO tab2 VALUES(new1.col1); INSERT INTO tab1 VALUES(2),(3);What is the result of the following query? SELECT count(*) FROM tab2;()

    A.3

    B.2

    C.1

    D.0


    参考答案:D

  • 第16题:

    “把查询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

  • 第17题:

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

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

    答案:B
    解析:

  • 第18题:

    将Students表的插入权限赋予用户UserA,并允许其将该权限授予他人,应使用的SQL语句为: GRANT (1) TABLE Students TO UserA (2) ;(2)处填()。

    • A、FORALL
    • B、PUBLIC
    • C、WITH CHECK OPTION
    • D、WITH GRANT OPTION

    正确答案:D

  • 第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题:

    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

  • 第21题:

    Given the following two tables: TAB1 C1 C2 1 Antarctica 2 Africa 3 Asia 4 Australia TAB2 CX CY 5 Europe 6 North America 7 South America Which of the following SQL statements will insert all rows found in table TAB2 into table TAB1?()

    • A、INSERT INTO tab1 SELECT cx, cy FROM tab2
    • B、INSERT INTO tab1 VALUES (tab2.cx, tab2.cy)
    • C、INSERT INTO tab1 VALUES (SELECT cx, cy FROM tab2)
    • D、INSERT INTO tab1 (c1, c2) VALUES (SELECT cx, cy FROM tab2)

    正确答案:A

  • 第22题:

    The user HR owns the EMP table. The user HR grants privileges to the user SCOTT by using this command:  SQL> GRANT SELECT,INSERT,UPDATE ON emp TO scott WITH GRANT OPTION; The user SCOTT executes this command to grant privileges to the user JIM: SQL> GRANT SELECT,INSERT,UPDATE ON hr.emp TO jim;  Now, the user HR decides to revoke privileges from JIM using this command: SQL> REVOKE SELECT,INSERT,UPDATE ON emp FROM jim; Which statement is true after HR issues the REVOKE command()

    • A、The command fails because SCOTT still has privileges.
    • B、The command succeeds and privileges are revoked from JIM.
    • C、The command fails because HR cannot revoke the privileges from JIM.
    • D、The command succeeds and only HR has the privilege to perform the SELECT, INSERT, and UPDATEoperations on the EMP table.

    正确答案:C

  • 第23题:

    单选题
    下列哪个语句将赋予用户John向表tab1中插入数据的权限?()
    A

    GRANT ADD ON TABLE tab1 TO John

    B

    GRANT INSERT ON tab1 TO John

    C

    GRANT ADD ON TABLE tab1 TO USER John

    D

    GRANT INSERT ON TABLE tab1 TO USER John


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