|
-
Originally posted by jmodic
No need to drop the foreign key constraint. Just disabling it for the duration of truncate operation and enabling it afterwards will be enough. So in your case:
Code:
ALTER TABLE t2 DISABLE CONSTRAINT fk2;
TRUNCATE TABLE t1 REUSE STORAGE;
ALTER TABLE t2 ENABLE CONSTRAINT fk2;
Yes, that's the way it should be done...
Oracle Certified Master
Oracle Certified Professional 6i,8i,9i,10g,11g,12c
email: [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|