← DBMS & SQL learning path
DBMS & SQL · Module 4 of 10

Changing data: DML

Add, change and remove rows with INSERT, UPDATE and DELETE.

📖 Key ideas

  1. INSERT INTO students (id, name) VALUES (1, 'Asha');
  2. UPDATE students SET name = 'Ravi' WHERE id = 1;
  3. DELETE FROM students WHERE id = 1;
  4. Always use WHERE with UPDATE and DELETE, or every row changes.
  5. DML = Data Manipulation Language.
💡 Real-life example: DML is daily office work: new admissions (INSERT), corrections (UPDATE), and removals (DELETE).
INSERTAdds new rows
UPDATEChanges existing rows
DELETERemoves rows
WHERELimits which rows are affected