Choose the right command for each action.
Comparison of DELETE and TRUNCATE
DELETE vs TRUNCATE
Report a typo
Choose one option for each row
| DELETE | TRUNCATE | |
|---|---|---|
| removes row/tuple one by one | ||
| locks the entire data page before removing | ||
| data deleting process is less resource consuming | ||
| uses WHERE clause to remove specific rows/tuples |
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.