What is the difference between DELETE, TRUNCATE, and DROP?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• DELETE:
o Deletes specific rows from a table.
o Can have a WHERE clause.
o DML command (can be rolled back).
• TRUNCATE:
o Deletes all rows from a table.
o Faster than DELETE (does not log individual row deletions).
o DDL command (cannot be rolled back).
• DROP:
o Removes a table entirely (schema + data).
o DDL command.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• DELETE:
o Deletes specific rows from a table.
o Can have a WHERE clause.
o DML command (can be rolled back).
• TRUNCATE:
o Deletes all rows from a table.
o Faster than DELETE (does not log individual row deletions).
o DDL command (cannot be rolled back).
• DROP:
o Removes a table entirely (schema + data).
o DDL command.
Is This Answer Correct ? | 0 Yes | 0 No |
• DELETE:
o Deletes specific rows from a table.
o Can have a WHERE clause.
o DML command (can be rolled back).
• TRUNCATE:
o Deletes all rows from a table.
o Faster than DELETE (does not log individual row deletions).
o DDL command (cannot be rolled back).
• DROP:
o Removes a table entirely (schema + data).
o DDL command.
Is This Answer Correct ? | 0 Yes | 0 No |
What are functions in sql?
how to load data with out header and footer records in a database using sql*loader? pls tell me the answer urgently
how to convert dates to character strings? : Sql dba
how tsql statements can be written and submitted to the database engine? : Transact sql
What language is oracle sql developer?
what is difference between pass by value and eference by value in oracle plsql
What are crud methods?
How many types of relationship are there?
What does fetching a cursor do?
Can you create a table with Primary Key not as the clustered index.
How to add, remove, modify users using sql?
What is group function in sql?