Difference between revisions of "DESCRIPTION Column Constraint"

From Lianjapedia
Jump to: navigation, search
m (1 revision: SQL)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Column constraint to set the column description for the specified column
 
Column constraint to set the column description for the specified column
 
  
 
==Syntax==
 
==Syntax==
 
DESCRIPTION <expC>
 
DESCRIPTION <expC>
 
  
 
==See Also==
 
==See Also==
 
[[ALTER TABLE]], [[SQL Constraints|CONSTRAINTS]], [[CREATE TABLE]], [[LABEL()]]
 
[[ALTER TABLE]], [[SQL Constraints|CONSTRAINTS]], [[CREATE TABLE]], [[LABEL()]]
 
  
 
==Description==
 
==Description==
Line 15: Line 12:
  
 
The DESCRIPTION column constraint is used to set the column description for the specified column.  The <expC> is a character expression of up to 25 characters.
 
The DESCRIPTION column constraint is used to set the column description for the specified column.  The <expC> is a character expression of up to 25 characters.
 
  
 
==Example==
 
==Example==
Line 25: Line 21:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]

Revision as of 08:00, 7 December 2012

Purpose

Column constraint to set the column description for the specified column

Syntax

DESCRIPTION <expC>

See Also

ALTER TABLE, CONSTRAINTS, CREATE TABLE, LABEL()

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 DESCRIPTION column constraint is used to set the column description for the specified column. The <expC> is a character expression of up to 25 characters.

Example

ALTER TABLE customer;
  ADD COLUMN dateref DATE;
  DEFAULT date();
  DESCRIPTION "Date Reference"