john125 — 2011-08-18T01:00:02-04:00 — #1
What is difference between turncate and delete
r937 — 2011-08-18T03:14:27-04:00 — #2
answer: logging of deleted rows
what is the difference between asking for information in a forum and looking it up in the manual yourself?
scallioxtx — 2011-08-18T06:01:43-04:00 — #3
Assuming you've started a transaction, or have auto commit disabled (which it almost never is), yes. Otherwise it'll just delete everything no questions asked all the same, without the need for manually committing anything.
system — 2011-08-24T13:28:20-04:00 — #4
Truncate an Delete both are used to delete data from the table. These both command will only delete data of the specified table, they cannot remove the whole table data structure.Both statements delete the data from the table not the structure of the table.
alex_coleman — 2011-08-25T00:50:36-04:00 — #5
Truncate is a dll command. Delete is a dml command. Truncate cannot be rolled back. All of the memory space is put back into the server after you use truncate.