CHOICES Column Constraint
From Lianjapedia
Revision as of 11:11, 11 February 2013 by Yvonne.milne (Talk | contribs)
Contents
Purpose
Column constraint to specify a choice list for a character column
Syntax
SET CHOICES <expC>
See Also
ALTER TABLE, CONSTRAINTS, CREATE TABLE
Description
A constraint is used to define rules that help to provide data integrity. Column constraints are specific to the column name specified. You must have ALTER privilege on the table. The table will be locked for EXCLUSIVE use during the operation.
The CHOICES column constraint is used to specify a choice list for a character column.
Example
open database southwind ALTER TABLE "example" MODIFY CONSTRAINT TITLE SET CHOICES "Mr,Mrs,Ms"