InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference

Class Definition Reference
Previous section           Next section
InterSystems: The power behind what matters   

Specifies whether this index defines the primary key for the table.
To specify that the primary key for this table is formed by the properties on which this index is based, use the following syntax:
Index name On property_expression_list [ PrimaryKey ];
Otherwise, omit this keyword or place the word Not immediately before the keyword.
This keyword specifies that this index should be reported, via SQL, as being the primary key for this class (table).
A PrimaryKey index also behaves like a unique index. That is, for the property (or the combination of properties) that you use in this index, InterSystems IRIS enforces uniqueness. It is permitted, but redundant, to specify the Unique keyword as true in this index definition.
Index EmpIDX On EmployeeID [ PrimaryKey] ;
If you omit this keyword, the primary key for this table is not formed by the properties on which this index is based.
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-08-22 06:48:58