What is difference between TRUNCATE and DELETE statement

Answer Posted / nirmala.s

if u use delete to remove the data from the table,this will
delete the data.after using rollback the removed data can
be retrived.But in case of, truncate , it will delete the
data and that can't ever be retrived.even after using
rollback also. but the table structure of the table will
be there

if u are using drop command , this will delete entire
table.and its structure.

Is This Answer Correct ?    29 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some case manipulation functions in sql?

795


How do I delete a sql server database?

754


How to use transact-sql statements to access the database engine?

768


What is the datatype of rowid?

680


Why do you want to join software field as you have done your BE in Electronics?

1907


What is factless fact table? : sql server analysis services, ssas

779


How do you debug a procedure in sql server?

654


What structure can you implement for the database to speed up table reads?

962


Explain Reporting Life Cycle?

102


what's the information that can be stored inside a bit column? : Sql server database administration

746


What are the advantages of user-defined functions over stored procedures in sql server?

692


What is difference between join and natural join?

663


What is a functions and types in sql server?

764


Explain the concepts and capabilities of sql server?

707


Explain indexing and what are the advantages of it?

747