建立主外键的constraint create table emp1(emp_no number(2) constraint emp_emp_no_pk primary key,ename varchar2(15),salary number(8,2),mgr_no number(2) constraint emp_mgr_fk references emp1); 查询状态 SQL> select constraint_name,constraint_type ,status from user…