key syntax
Specify the syntax of indexes and primary keys.
USYS$ODx_PARAMS key syntax :
index
| foxpro
| paradox
|
dosfile
| primary key
| constraint
Arguments
In the following descriptions, TableName is the name of the Uniface entity and IndexNumber is the sequential number of the index.
-
index
—primary keys are created as unique indexes (the default).Indexes are named:
I_
TableName_
IndexNumberA unique index is created for the primary key, which is named:
unique index I_
TableName_1
-
foxpro
—indexes are not supported.A primary key is named:
primary key (
Field1{,
Field2...}) TAG PKEY
-
paradox
—a primary key is created as an index, with the same name as the table:unique index
TableName(
Field1{,
Field2...})
Other keys are created with the name of the first field of the index:
{
unique
}index
Field1(
Field1{,
Field2...})
-
dosfile
—primary key and indexes are created with the names:indx
nnnn, where nnnn is a 4-digit incremental number starting at 0001 (with leading zeroes), for example:create index indx0001 (
Field1{,
Field2...})
-
primary key
—index names are named:I_
TableName_
IndexNumberPrimary keys are named:
primary key (
Field1{,
Field2...})
-
constraint
— indexes are named:I_
TableName_
IndexNumberPrimary keys are of the form:
constraint
TableNamePK primary key (
Field1{,
Field2...})
Description
The syntax of indexes and primary keys based on the 'file type' of the data source.