Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Although the data type of a column restricts the values that are allowed in that column (for example, only numbers or dates), you may want to further restrict the allowed values.
You can restrict the values of any column by specifying a CHECK constraint. A CHECK constraint is a restriction that enforces specified conditions on a column or set of columns. You can use any valid condition that could appear in a WHERE clause to restrict the allowed values. Most CHECK constraints use either the BETWEEN or IN condition. See CHECK constraints on columns and CHECK constraints on tables.
For more information about valid conditions, see Search conditions.
For more information about assigning constraints to tables and columns, see Data integrity
Discuss this page in DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|