ONOPEN Table Constraint

From Recital Documentation Wiki
Revision as of 17:21, 19 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ONOPEN

Class

Table Constraints


Purpose

Table constraint activated when the table is opened


Syntax

ONOPEN <procedure>


See Also

ALTER TABLE, CONSTRAINTS, CREATE TABLE


Description

A constraint is used to define rules that help to provide data integrity. TABLE constraints apply to table-based operations. You must have ALTER privilege on the table. The table will be locked for EXCLUSIVE use during the operation.

The ONOPEN table constraint is activated when the table is opened. The <procedure> specified must be a character expression evaluating to a procedure name. If no file extension is included, '.prg' is assumed. The specified procedure is run after the operation to open the table is executed.


Example

ALTER TABLE customer modify ONOPEN "p_open";


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer