Caché Class Definition Reference
OnUpdate
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Specifies the action that this foreign key should cause in the current table when a record is updated in the foreign table.
Usage
To specify what happens in the current table when a record is updated in the foreign table, use the following syntax:
ForeignKey keyname(key_props) References pkg.class(ref_props) [ OnUpdate = onupdate ];
Where onupdate is one of the following:
Details
This keyword defines the referential action that occurs when a key value is updated in the foreign table.
Default
The default is noaction.
See Also