- 3
What is actual difference between delete,drop,truncate ?????
5 Antworten
+ 2
Delete deletes a row of a table.
Truncate deletes all rows of a table.
Drop deletes all rows of a table and the table itself.
By the way, how is that a C# question? Shouldn't you put a sql tag instead?
0
What about the columns of the tables it won't get deleted ?
0
If you need to delete columns, then you should change schema with alter table commands, which are different between databases.
And yes, change tag to sql.
0
Delete : deletes the value
Drop : delete table with structure and data.
Truncate : makes the table empty.
0
All theses operations r used in different situation. As required.