Data Manipulation Language: Database Management Systems
Data Manipulation Language: Database Management Systems
Language
Database Management Systems
INSERT, UPDATE, DELETE
• INSERT - add a row to a • UPDATE and DELETE use
table ‘WHERE clauses’ to specify
which rows to change or
remove
• UPDATE - change row(s) in
a table • BE CAREFUL with these - an
incorrect WHERE clause can
destroy lots of data
• DELETE - remove row(s)
from a table
Student
Student
INSERT INTO Student ID Name Year
ID Name Year
(Name, ID) 1 John 1
1 John 1 VALUES (‘Mary’, 2) 2 Mary
Student
INSERT INTO Student ID Name Year
VALUES (2, ‘Mary’, 3) 1 John 1
2 Mary 3