Thứ Sáu, 5 tháng 10, 2018
ORA-02273: this unique/primary key is referenced by some foreign keys
1. Errors
alter table DEPARTMENTS# drop constraint departments_pk;
ORA-02273: this unique/primary key is referenced by some foreign keys
2. Solutions
select * from all_constraints
where constraint_type='R' and r_constraint_name='DEPARTMENTS_PK';
alter table EMPLOYEES# drop constraint EMP_TO_DEPT_FK;
alter table JOB_HISTORY# drop constraint JOB_HIST_TO_DEPARTMENTS_FK;
alter table BINHTV.DEPARTMENTS# drop constraint departments_pk; --> OK
ĐỌC NHIỀU
-
Oracle SQL Developer là phần mềm do chính hãng Oracle phát triển. Bạn có thể download phần mềm này tại đây (miễn phí). Hoặc khi bạn cài...
-
1. Check select * from dictionary ORDER BY TABLE_NAME; ---SYSTEM PRIVILEGES -- liệt kê quyền tương ứng cua DBA select * from DBA_SYS_PRI...
-
2.1. K IẾN TRÚC ORACLE SERVER Oracle server là một hệ thống quản trị cơ sở dữ liệu đối tượng-quan hệ cho phép quản lý thông tin một các...
-
5.1. PHÂN LOẠI USERS Oracle là một hệ quản trị cơ sở dữ liệu lớn, chạy trên môi trường mạng. Để vận hành hệ thống được tốt, có thể...
-
Mysql Partitioning theo đúng như tên của nó là việc phân chia một table thành những phần nhỏ theo một logic nhất định, được phân biệt bằng...