What is the difference between DELETE and TRUNCATE?

Answer Posted / debi

1.when we use delete command then the records from the
table is not deleted permanently so that when we further
use rollback command the records are again available in the
table but in case of truncate the data is permenently
deleted from the table.
2.in case of truncate data deletion is faster as compared
to delete
3.
we can't use ant where condition in case if truncate

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does access use sql?

565


What is difference between left and right outer join?

526


What mean sql?

583


What are aggregate and scalar functions?

527


Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?

1683






Which are the different types of indexes in sql?

563


What is a primary key? Explain

542


Is left join same as inner join?

541


How do you optimize a stored procedure in sql?

503


How do I upgrade sql?

551


Does db2 use sql?

510


Is trigger a stored procedure?

506


what are the advantages and disadvantages of cascading style sheets? : Sql dba

552


how to calculate the difference between two dates? : Sql dba

550


How can you get sql*loader to commit only at the end of the load file? : aql loader

554