Created
May 10, 2013 13:19
-
-
Save altitdb/5554338 to your computer and use it in GitHub Desktop.
Habilitar/Desabilitar Constraints (FK)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oracle | |
Habilitar/Desabilitar Constraints (FK) | |
set heading off | |
spool C:\file.sql; | |
select 'alter table '||table_name||' OPERATION constraint '||constraint_name||';' | |
from user_constraints u | |
where u.constraint_type = 'R'; | |
spool off | |
The OPERATIONS can be: | |
enable novalidate | |
enable | |
disable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment