
8SGDWLQJGDWD
Data may be updated by inserting new rows (INSERT), amending existing rows
(UPDATE) and deleting existing rows (DELETE). Note that ‘update’ (in lower case)
generally means insert, amend or delete, whereas UPDATE (in upper case) is the SQL
command to amend a row.
,QVHUWLQJGDWD
Example 1
INSERT INTO employee VALUES ('E6', 'Patel', 'R3', 'E4')
This inserts a new row into the employee table. The values are inserted into the columns
of employee in the order in which those columns appear in the CREATE TABLE
statement.
Example 2
INSERT INTO employee (emp_no, emp_name, sup_no) VALUES ('E3', 'Jones',
'E9')
This inserts the given values into ...