Databases · Junior · Question 34 of 75

What is the difference between DELETE FROM logs and TRUNCATE logs?

Explanation

DELETE can have a WHERE and removes rows one by one. DROP TABLE removes the table structure too.

Further reading

Problem with a question

Databases · Junior · question 34

Test yourself

Take the Databases · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz