What is the difference between DELETE and TRUNCATE?
Answer Posted / debi
1.when we use delete command then the records from the
table is not deleted permanently so that when we further
use rollback command the records are again available in the
table but in case of truncate the data is permenently
deleted from the table.
2.in case of truncate data deletion is faster as compared
to delete
3.
we can't use ant where condition in case if truncate
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Can we call dml statement in function?
Is nosql relational?
Is sql a programming?
Does pdo prevent sql injection?
Can we perform dml on view?
What are different types of tables in sql?
Explain unique key in sql.
What is pl/sql language case sensitive?
What are the different dcl commands in sql?
Mention what does plv msg allows you to do?
What is a primary key example?
Differentiate between % rowtype and type record.
what is a trigger? : Sql dba
what are the advantages and disadvantages of cascading style sheets? : Sql dba
How can I change database name in sql?