| United States-English |
|
|
|
![]() |
ALLBASE/SQL Database Administration Guide: HP 3000 MPE/iX Computer Systems > Chapter 7 MaintenanceMaintaining Constraints |
|
During the life of a database, you may add or drop constraints on tables. To add one or more constraints use the ALTER TABLE statement on an existing table. Refer to the ALLBASE/SQL Reference Manual for syntax. Adding a constraint may require the following considerations:
The following statement adds a constraint to table PurchDB.Parts:
The added check constraint named VndNum ensures that PartNumber will be greater than zero. To drop one or more constraints, use the ALTER TABLE statement on an existing table. Refer to the ALLBASE/SQL Reference Manual for syntax. Dropping a constraint requires the following considerations:
The following statement drops a constraint:
The constraint named VndNum that was added above is dropped from table PurchDB.Parts. |
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||