Your code didn't succeed because the column employees.employee_id
is a non-null field without a default value. When you run:
INSERT INTO EMPLOYEES(INCREASE2)
VALUES ('whatever');
The values of all the other fields in Employees
are assigned the default, or NULL
if no default value exists. Because this violates a constraint, you get an error.
Normally, a field like employee_id
would be assigned to a sequence. This would automatically insert an auto-incremented value for each new record.