"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Wednesday, May 11, 2011

Difference between TRUNCATE & DELETE in SQL

Difference Between DELETE & TRUNCATE Are


1. DELETE  is a DML Command & TRUNCATE is a DDL Command

2. After DELETE  can rollback the Records & After TRUNATE cannot rollback the records

3. In DELETE Command you can give the conditions in WHERE Clause & In TRUNCATE you cannot give conditions

4. After using DELETE Command The memory will be occupied till the user does not give ROLLBACK or COMMIT & After using TRUNCATE Command The memory realeased immediately


Have a nice day... 'N happy Coding :)

No comments: