| Directives |
|
| Format | CREATE
TABLE filename$,[,extkey_len][,key_def$][,max_recs][,rec_size][,fileopt] Where:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | Use the CREATE TABLE directive to create a file with one or more keys. If the first field in the directive after the filename is a number, ProvideX creates an external file key (i.e., an index to the file). If the first field in the directive is a key definition enclosed in square brackets [ ], then ProvideX uses only internal key fields instead. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| *Note* | By default, the CREATE TABLE directive will create Enhanced File Format (EFF) files on platforms that support Large File System (LFS), 64-bit addressing; however, by setting OPT="0"in the syntax, CREATE TABLE can also be used to create variable-length record (VLR) data files or fixed-length record (FLR) formatted files. For more information on VLR/FLR, refer to the KEYED Directive. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ProvideX
considers the first key specified for an EFF
file to be the primary key. Every record must have a
unique primary key. You can have duplicate secondary keys
from record to record. There is a maximum of 255 keys
allowed on a file with a maximum of 255 data components
making up these 255 keys. For VLR/FLR
files, there is a maximum of 16 key fields allowed on a
file with a maximum of 96 data components making up the
16 keys. There is no limit (other that the maximum of 96
key components) to the number of fields that comprise a
key. The initial implementation of EFF (in Version 6)
is limited to 96 keys and 96 segments. If a given filename already exists, ProvideX returns Error #12: File does not exist (or already exists). Keys have the following limits:
Enhanced File Format (EFF) Notes EFF records are always variable length. In future, EFF files will support transactions. For more information, refer to the SYSTEM_JRNL Directive. The following file limitations exist for EFF files:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also | KEYED
Create Single/Multi-Keyed File DIRECT Create File with Keyed Access SYSTEM_JRNL File System Journalization ADD INDEX Add Key to Keyed File DROP INDEX Drop Key from Keyed File RENAME..INDEX Rename Keys in Keyed File SORT Create File for Sorting Accessing Data Files |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||