What is the difference between DELETE and TRUNCATE?

Answer Posted / anitha

If we are using the delete command means the content of the
table will be deleted.but we can recover that data by using
the roll back query in my sql.
But this one is not possible we can use truncate.so some
times of our carelessness we can loss some valuable and
sensitive datas.
so make sure of that before using truncate...

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need pl sql?

550


What are local and global Indexes and where they are useful.

930


Are stored procedures faster than queries?

524


What is the difference between delete and truncate commands?

515


what are the different index configurations a table can have? : Sql dba

575






Write a sql query to find the names of employees that begin with ‘a’?

578


Can we call dml statement in function?

542


What is a ddl command?

534


what is a unique key ? : Sql dba

547


what is view? : Sql dba

556


how to drop an existing view in mysql? : Sql dba

570


What are the different types of constraints?

564


what is index? : Sql dba

558


is mysql query is case sensitive? : Sql dba

562


What is clause?

608