PICTURE Column Constraint

From Lianjapedia
Jump to: navigation, search

Purpose

Column constraint to specify input mask

Syntax

PICTURE <expC>

See Also

ALTER TABLE, CONSTRAINTS, CREATE TABLE, Input Masks

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 PICTURE column constraint is used to specify the input mask for the column.

Example

ALTER TABLE "customers" MODIFY CONSTRAINT CUSTOMERID SET PICTURE "@^"