niusouti.com
更多“Delete form. tablename与TRUNCATE table tablename的区别”相关问题
  • 第1题:

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

    A.delete all from book

    B.delete from book

    C.truncate table book

    D.drop table book


    参考答案:BC

  • 第2题:

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

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

    正确答案:A,B

  • 第3题:

    您需要删除“计划”表中的所有数据、该表的结构以及与该表关联的索引,应使用哪条语句?()

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

    正确答案:B

  • 第4题:

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

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

    正确答案:A,D

  • 第5题:

    数据库命令delete和truncate区别是什么?


    正确答案: 1、TRUNCATE在各种表上无论是大的还是小的都非常快。如果有ROLLBACK命令DELETE将被撤销,而TRUNCATE则不会被撤销。
    2、TRUNCATE是一个DDL语言,向其他所有的DDL语言一样,他将被隐式提交,不能对TRUNCATE使用ROLLBACK命令。
    3、TRUNCATE将重新设置高水平线和所有的索引。在对整个表和索引进行完全浏览时,经过TRUNCATE操作后的表比DELETE操作后的表要快得多。
    4、TRUNCATE不能触发任何DELETE触发器。
    5、当表被清空后表和表的索引讲重新设置成初始大小,而delete则不能。

  • 第6题:

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

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

    正确答案:B

  • 第7题:

    下面哪个命令不属于数据定义语言()

    • A、alter table…
    • B、drop index…
    • C、create view…
    • D、update tablename…

    正确答案:D

  • 第8题:

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

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

    正确答案:B,C

  • 第9题:

    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

  • 第10题:

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


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

  • 第11题:

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

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

    正确答案:B

  • 第12题:

    问答题
    数据库命令delete和truncate区别是什么?

    正确答案: 1、TRUNCATE在各种表上无论是大的还是小的都非常快。如果有ROLLBACK命令DELETE将被撤销,而TRUNCATE则不会被撤销。
    2、TRUNCATE是一个DDL语言,向其他所有的DDL语言一样,他将被隐式提交,不能对TRUNCATE使用ROLLBACK命令。
    3、TRUNCATE将重新设置高水平线和所有的索引。在对整个表和索引进行完全浏览时,经过TRUNCATE操作后的表比DELETE操作后的表要快得多。
    4、TRUNCATE不能触发任何DELETE触发器。
    5、当表被清空后表和表的索引讲重新设置成初始大小,而delete则不能。
    解析: 暂无解析

  • 第13题:

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

    A.ALTER TABLE B

    B.TRUNCATE TABLE B

    C.DROP TABLE B

    D.DELETE TABLE B


    正确答案:C

  • 第14题:

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

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

    正确答案:C

  • 第15题:

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

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

    正确答案:A

  • 第16题:

    MySQL中修改数据表的名字的命令是()。

    • A、Alter table tablename rename to new_name
    • B、Alter table tablename rename new_name
    • C、Rename tablename to newname
    • D、Rename tablename newname

    正确答案:A,B

  • 第17题:

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

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

    正确答案:A

  • 第18题:

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

    • 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

  • 第19题:

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

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

    正确答案:B,C

  • 第20题:

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

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

    正确答案:A

  • 第21题:

    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

  • 第22题:

    ExcelUtil的params参数中必须要传的是()

    • A、tableName、columnCaptions
    • B、tableName、columnNames
    • C、columnCaptions、columnNames
    • D、tableName、filter

    正确答案:A

  • 第23题:

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

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