What's the difference between DELETE TABLE and TRUNCATE
TABLE commands?

Answer Posted / radh

TRUNCATE is a DDL command whereas DELETE is a DML command.
Hence DELETE operation can be rolled back, but TRUNCATE
operation cannot be rolled back. WHERE clause can be used
with DELETE and not with TRUNCATE.

Is This Answer Correct ?    27 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why it is recommended to avoid referencing a floating point column in the where clause?

542


How to get a list of columns in a view using the "sp_help" stored procedure?

575


Can a unique index be created on a column, which contains null?

525


Write a SQL query to make a column as unique?

632


How to change the system date and time from SQL Plus Terminal ?

689






How to set the current database in ms sql server?

534


What are the diifferences between the ms sql server vs mysql?

658


Explain the use of containers in ssis?

536


What is query parameter in ssrs?

118


What are translations and its use? : sql server analysis services, ssas

608


What does it mean to invest in the index?

512


What is difference between unique and primary key?

479


What is the difference between value type and reference type?

557


What is page in sql server?

517


explain different types of backups avaialabe in sql server? : Sql server database administration

596