+ 1
I am confused between drop and delete. Someone please explain.
7 Answers
+ 8
Drop is to delete whole table or column. delete is to delete a record or set of records
+ 6
Delete can only delete data in a table, but drop can delete a table, column, and the whole database. Think of delete as a jack hammer that can remove small pieces of a road and drop as a bull dozer that can take out large portions of road at a time.
+ 2
Drop deletes both data and structure of the table.
Delete deletes only data not the table structure/definition. We can use where clause also to delete data using delete command.
+ 1
Delete removes only selected data while drop removes all data
+ 1
drop command is use to delete whole table but delete command with is used to delete the selected rows only
0
Drop will remove the specified column/table with no chance of rollback,
whereas delete will remove data from a table but nor the table structure, and can use rollback
0
these answers are absolutely currect