niusouti.com

多选题关于DELETE和TRUNCATE TABLE的说法,正确的是()。A两者都反回被删除记录的数目B两者都可以删除指定条目的记录C前者返回被删除记录数目,后者不返回D前者可以删除指定条目的记录,后者不能

题目
多选题
关于DELETE和TRUNCATE TABLE的说法,正确的是()。
A

两者都反回被删除记录的数目

B

两者都可以删除指定条目的记录

C

前者返回被删除记录数目,后者不返回

D

前者可以删除指定条目的记录,后者不能


相似考题
更多“关于DELETE和TRUNCATE TABLE的说法,正确的是()。”相关问题
  • 第1题:

    假定表A中有十万条记录,要删除表中的所有数据,但仍要保留表的结构,请问用以下哪个命令效率最高()

    A.delete from a;

    B.drop table a;

    C.trunc table a;

    D.truncate table a;

    E.以上所述都不正确


    参考答案:D

  • 第2题:

    如果要删除A数据库中的B表,可以使用下列哪个命令?______

    A.ALTER TABLE B

    B.TRUNCATE TABLE B

    C.DROP TABLE B

    D.DELETE TABLE B


    正确答案:C

  • 第3题:

    ORACLE数据库中如何删除表table中的所有记录,并回收所有空间()

    • A、delete * from table
    • B、delete from table
    • C、truncate table
    • D、clear table

    正确答案:C

  • 第4题:

    关于Truncate table, 以下()描述是错误的。

    • A、Truncate table 可跟Where从句,根据条件进行删除
    • B、Truncate table 用来删除表中所有数据
    • C、触发器对Truncate table无效
    • D、delete 比Truncate table速度快

    正确答案:A,D

  • 第5题:

    用truncate和delete语句删除表中数据的区别()

    • A、truncate 命令不记录日志
    • B、truncate 命令记录日志
    • C、delete命令不记录日志

    正确答案:A

  • 第6题:

    如下能正确执行的语句是()

    • A、select * from table_name where 1<=2
    • B、truncate table table_name
    • C、delete from table_name where null=null
    • D、alter table table_name add column idd int

    正确答案:A,B,C

  • 第7题:

    关于Truncatetable,以下()描述是错误的。

    • A、Truncate table可跟Where从句,根据条件进行删除。
    • B、Truncate table用来删除表中所有数据。
    • C、触发器对Truncate table无效。
    • D、delete比Truncate table速度快。

    正确答案:A,D

  • 第8题:

    下面哪一个SQL语句将删除DEPT表中的所有数据,并永久删除DEPT表的整个结构()

    • A、DROP TABLE dept;
    • B、DELETE TABLE dept;
    • C、TRUNCATE TABLE dept;
    • D、DELETE * . * FROM dept; [END CODE]"

    正确答案:A

  • 第9题:

    Which three descriptions are correct about the effects of the TRUNCATE command on a table()

    • A、The corresponding indexes for the table are also truncated.
    • B、Delete triggers on the table are fired during the execution of the TRUNCATE command.
    • C、The child table is truncated when the TRUNCATE command is applied on the parent table.
    • D、The high-water mark (HWM) is set to point to the first usable data block in the table segment.
    • E、No undo or very little undo data is generated during the execution of the TRUNCATE command

    正确答案:A,D,E

  • 第10题:

    delete from system.table1与truncate table system.table1区别是什么?


    正确答案: Delete语句删除记录并不能释放Oracle中占用的数据块表空间,它只把删除的数据块标记为unused,可恢复。
    Truncate语句删除表中的全部记录,释放占用的数据块表空间,不能恢复。

  • 第11题:

    多选题
    关于Truncate table, 以下()描述是错误的。
    A

    Truncate table 可跟Where从句,根据条件进行删除

    B

    Truncate table 用来删除表中所有数据

    C

    触发器对Truncate table无效

    D

    delete 比Truncate table速度快


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

  • 第12题:

    多选题
    Evaluate the SQL statement: TRUNCATE TABLE DEPT;Which three are true about the SQL statement? ()
    A

    It releases the storage space used by the table.

    B

    It does not release the storage space used by the table.

    C

    You can roll back the deletion of rows after the statement executes.

    D

    You can NOT roll back the deletion of rows after the statement executes.

    E

    An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will display an error.

    F

    You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate the DEPT table.


    正确答案: A,D,F
    解析: 暂无解析

  • 第13题:

    若要删除book表中所有数据,以下语句错误的是哪两项?()

    A.delete all from book

    B.delete from book

    C.truncate table book

    D.drop table book


    参考答案:BC

  • 第14题:

    请问oracle的整表删除操作()是正确的。

    • A、truncate table tablename
    • B、delete from tablename
    • C、delete*from tablename
    • D、以上都不对

    正确答案:A,B

  • 第15题:

    删除emp表中所有数据,且无法rollback,以下语句哪个命令可以实现()

    • A、truncate table emp
    • B、drop table emp
    • C、delete * from emp
    • D、delete from emp

    正确答案:A

  • 第16题:

    关于DELETE和TRUNCATE TABLE的说法,正确的是()。

    • A、两者都反回被删除记录的数目
    • B、两者都可以删除指定条目的记录
    • C、前者返回被删除记录数目,后者不返回
    • D、前者可以删除指定条目的记录,后者不能

    正确答案:C,D

  • 第17题:

    删除emp表的全部数据,但不提交,以下正确的语句是()

    • A、DELETE * FROM. EMP
    • B、DELETE FROM EMP
    • C、TRUNCATE TABLE EMP
    • D、DELETE TABLE EMP"

    正确答案:B

  • 第18题:

    关于Truncatetable,以下()描述是正确的。

    • A、Truncate table 可跟Where从句,根据条件进行删除 
    • B、Truncate table 用来删除表中所有数据 
    • C、触发器对Truncate table无效 
    • D、delete 比Truncate table速度快

    正确答案:B,C

  • 第19题:

    若要删除book表中所有数据,以下语句错误的是()

    • A、truncate table book 
    • B、delete * from book
    • C、drop table book 
    • D、delete from book

    正确答案:B,C

  • 第20题:

    Evaluate the SQL statement:TRUNCATE TABLE DEPT;Which three are true about the SQL statement? ()

    • A、It releases the storage space used by the table.
    • B、It does not release the storage space used by the table.
    • C、You can roll back the deletion of rows after the statement executes.
    • D、You can NOT roll back the deletion of rows after the statement executes.
    • E、An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will display an error.
    • F、You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate the DEPT table

    正确答案:A,D,F

  • 第21题:

    假定表A中有十万条记录,要删除表中的所有数据,但仍要保留表的结构,请问用以下哪个命令效率最高()

    • A、delete from a;
    • B、drop table a;
    • C、trunc table a;
    • D、truncate table a;
    • E、以上所述都不正确

    正确答案:D

  • 第22题:

    用于删除表中所有数据行的命令是()。

    • A、DELETE TABLE
    • B、TRUNCATE TABLE
    • C、DROP TABLE
    • D、ALTER TABLE

    正确答案:B

  • 第23题:

    多选题
    关于Truncatetable,以下()描述是正确的。
    A

    Truncate table 可跟Where从句,根据条件进行删除 

    B

    Truncate table 用来删除表中所有数据 

    C

    触发器对Truncate table无效 

    D

    delete 比Truncate table速度快


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

  • 第24题:

    问答题
    delete from system.table1与truncate table system.table1区别是什么?

    正确答案: Delete语句删除记录并不能释放Oracle中占用的数据块表空间,它只把删除的数据块标记为unused,可恢复。
    Truncate语句删除表中的全部记录,释放占用的数据块表空间,不能恢复。
    解析: 暂无解析