![]() Previous |
![]() Next |
You can delete constraints from a table with Database Control. Deleting a table constraint may cause the deletion of other constraints. For example, if you delete the primary key constraint from a table (the parent table) that is referenced in a foreign key constraint in another table (the child table), then the foreign key constraint in the child table is also deleted through a cascading delete mechanism.
In this example, you delete the check constraint that you created for the purchase_orders table in "Example: Adding a New Table Constraint".
To delete a constraint from the PURCHASE_ORDERS table:
Go to the Database Home page, logging in as user nick or as user SYSTEM.
At the top of the page, click Schema to view the Schema subpage.
In the Database Objects section, click
Tables
The Tables page appears.
In the Schema field, enter NICK and then click Go.
All tables owned by user NICK are displayed.
Select the PURCHASE_ORDERS table, and then click Edit.
The Edit Table page appears.
Click Constraints to display the Constraints subpage.
Select the constraint named PO_CHECK_RCVD_DATE, and then click Delete.
The check constraint is removed from the list.
Click Apply.
A confirmation message appears.
Oracle Database Concepts for more information about the cascading delete mechanism