Professional Documents
Culture Documents
alter table
table_name
add constraint
constraint_name;
alter table
table_name
ENABLE constraint
constraint_name;
alter table
table_name
DISABLE constraint
constraint_name;
Check Constraint
alter table
table_name
add constraint
check_constraint_name
CHECK
(check_column_name IN
'check_constraint1_value',
'check_constraint2_value',
'check_constraint3_value',
'check_constraint4_value'
) DISABLE|ENABLE;
Here are some examples of Oracle "alter table" syntax to add foreign key constraints.
alter table
cust_table
add constraint
references
person_table (person_name)
cust_table
add constraint
references
ALTER TABLE
cust_table
drop constraint
fk_cust_table_ref;
alter table
cust_table
add constraint
check_cust_types
CHECK
(cust_type IN
'yuppie',
'dink',
'guppie'
);
The following errors are associated with Oracle constraint alter commands:
Note: This Oracle documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals. Feel free to ask questions on our Oracle forum.
Verify experience! Anyone considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on advertisements and self-
proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.
Errata? Oracle technology is changing and we strive to update our BC Oracle support information. If
you find an error or have a suggestion for improving our content, we would appreciate your feedback.
Just e-mail: and include the URL for the page.
Burleson Consulting