HELP Column Constraint

From Lianjapedia
Jump to: navigation, search

Purpose

Column constraint to set the tooltip for the specified column

Syntax

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

Example

create table books;
 (title char(100) HELP "Enter the title",;
 authorlast char(100) HELP "Enter the author's surname")
 
alter table "customers";
 modify constraint (customerid HELP "Tooltip for Customer ID")
 
alter table "customers";
 modify constraint companyname set HELP "Tooltip for Company Name"