Beruflich Dokumente
Kultur Dokumente
Now we can add the employee_fk foreign key constraint on jp.employee table.
alter table jp.employee add (constraint employee_fk foreign key
(mgr_num) references jp.manager(mgr_num));
Now I want to truncate all the tables in JP's schema and refresh with import fro
m production db.
SQL> select count(1) from jp.manager;
COUNT(1)
----------
1
SQL> select count(1) from jp.employee;
COUNT(1)
----------
2
The following scripts disable all foreign key constraints and truncate the table
s
in a particular schema and re-enable the foreign key constraints.
Pls make necessary changes as per your specific requirements.