336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
UPDATE employees
SET department_id = 55
WHERE department_id = 110;
SET department_id = 55
WHERE department_id = 110;
UPDATE employees
*
ERROR at line 1:
ORA-02291: integrity constraint (HR.EMP_DEPT_FK)
violated - parent key not found
Department 55 doesn't exist in the parent table.
You cannot delete a row that contains a primary key that is used as a foreign key in another table.
DELETE FROM departments
WHERE department_id = 60;
WHERE department_id = 60;
DELETE FROM department
*
ERROR at line 1:
ORA-02292: integrity constraint (HR.EMP_DEPT_FK)
violated - child record found
'Oracle' 카테고리의 다른 글
Creating a Table by Using a Subquery (0) | 2006.11.24 |
---|---|
Creating a Table by Using a Subquery (0) | 2006.11.24 |
Violating Constraint (0) | 2006.11.23 |
CHECK Constraint (0) | 2006.11.23 |
CHECK Constraint (0) | 2006.11.23 |