docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference  /  Foreign Key Keywords

Class Definition Reference
OnUpdate
Previous section           Next section
InterSystems: The power behind what matters   
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_index) [ 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


Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-09-19 06:56:35