0

Exact difference between DELETE, DROP and TRUNCATE in SQL.

14th Sep 2016, 2:01 PM
Rohan Raj
Rohan Raj - avatar
3 odpowiedzi
0
Drop deletes the data and schema both. TRUNCATE erases the data only. Delete, anyone?
14th Sep 2016, 2:02 PM
Rohan Raj
Rohan Raj - avatar
0
Drop: delete data and the table(schema) Truncate: Removes all data from schema and reset identity column again if set in some column delete: remove particular or all row from schema based on condition if any. but it does not reset the identity column.
14th Sep 2016, 2:19 PM
Sandeep
0
delete delete the record where as drop not only delete record it also removes the physical structure of table truncate its used to cut the the data from particular limit
15th Sep 2016, 6:24 PM
Usha Garkoti
Usha Garkoti - avatar