Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous section


Specifies an SQL alias for the foreign key.


To override the default SQL name for this foreign key, use the following syntax:

ForeignKey keyname(key_props) References pkg.class(ref_index) [ SqlName = alternate_name ];

Where alternate_name is an SQL identifier.


This keyword lets you define an alternate name for this foreign key when referred to via SQL.


If you omit this keyword, the SQL name for the foreign key is keyname as specified in the foreign key definition.

See Also