SQL
SQL
1.what is the difference between delete and truncate and drop statement ?
DELETE
| | TRUNCATE
| DROP
-> delete command is used to delete row in a table
Truncate delete's all the rows from the table
Deletes the table
You can rollback after using delete statement
You cannot rollback.
You cannot rollback.
It is a DML command
It is a DDL command.