What is difference between delete and truncate in sql?
Interview Answers
Anonymous
Mar 28, 2022
Delete is used in dml where truncate is used in dcl
Anonymous
Mar 23, 2025
Answer
delete is used to delete a specific row we can use where clause and is a type of dml whereas truncate is used when we need to completely delete all rows in table and is type of ddl