Lecture Four_DML with tables_
Lecture Four_DML with tables_
Note:
This statement will insert one row at a time.
Enclose date and character values in single quotes.
The list of values is by default in the order that of columns in the
relation.
When using the explicit method; one must specify the NULL
keyword for the columns whose values you are not entering
Example: INSERT INTO departments
VALUES ( 200, ‘Accounts’, NULL, NULL);
02/05/25 DML with tables 3.9
The Insert Operation Cont’d
Known values must be supplied for columns that are
defined as ‘not null’.
Example:
INSERT INTO employees (employee_id, last_name, hire_date)
VALUES (903,'Okello', '22-jan-88');
Example:
DELETE FROM departments
WHERE department_id = 60;