DELETE Record
DELETE FROM students WHERE roll = 12; removes matching rows. The table remains. DELETE FROM students; with no WHERE deletes everyone — same danger as UPDATE.
FOREIGN KEY: you cannot delete Asha if marks rows still point to her roll, unless ON DELETE CASCADE. That is a feature. Don’t disable FK to ‘make DELETE work’ in production.
Trap — DELETE vs DROP vs TRUNCATE mixed up. DELETE = rows. TRUNCATE = all rows, keep table. DROP = table gone.
On the example next to this theory: DELETE Record — dELETE removes matching rows. TRUNCATE clears a whole table faster (MySQL).
DELETE FROM students WHERE roll = 12;