|
Oracle Home |
|
Home > Oracle Database Administration (DBA) > Scripts > Enable/ disable constraints on a table |
|
Oracle 10g, 11g Database Administration (DBA): Scripts |
|---|
Enable/ disable constraints on a table |
|
Generate the statements needed to enable a specific constraint type on a specific table:
SELECT 'alter table ' || table_name
|| ' ENABLE constraint ' || constraint_name || ';'
statements AND constraint_type = 'C' AND table_name = 'EMP';
Generate the statements needed to disable a specific constraint type on a specific table:
SELECT 'alter table ' || table_name
|| ' DISABLE constraint ' || constraint_name || ';'
statements AND constraint_type = 'C' AND table_name = 'EMP';
|
|
Home > Oracle Database Administration (DBA) > Scripts > Enable/ disable constraints on a table |
|
Different Romanian Links/ Linkuri romanesti diferite |
Disclaimer: The views expressed on this web site are my own and do not reflect the views of Oracle Corporation. You may use the information from this site only at your risk. Copyright (c) 2009-2011 Paul Catalin Tomoiu. All rights reserved.