1.5.2 Tables and Fields
A Table is a collection of records, also called
rows, that share a common structure. A Field is an item of data in a record. A Field is also called a column. A Database is a collection of Tables. The maximum number of records in a table is 2,147,479,552 (0xFFFF000). For tables without the GROW attribute, the aggregate maximum number of records is also 2,147,479,552 (0xFFFF000). For tables with the GROW attribute, there is no aggregate limit. |
Table Names and Field Names must be at least two
characters in length; and can be up to 64 characters in length.
Table Names and Field Names are constructed from the character set {'A' thru 'Z', '0' thru '9', '_', '#'}. The first character of a Table Name or Field Name cannot be a numeric character or '#'. Table Names and Field Names are case insensitive; so that 'A' thru 'Z' are equivalent respectively to 'a' thru 'z'. Two tables in the same database cannot have the same name. Within a table, two fields cannot be named the same. But two different tables can share common field names. These are called global fields. The natural relationships that exist between tables are determined by global keys. For example, all of the records in the database associated with a particular customer share the same value for CUST#. You expect that exactly one of those records is in the CUSTOMERS table, the rest are the sales records in the SALES table. Common fields supply the linking mechanism between naturally allied data. |
Data types for a Table Definition are:
|
An index is a special structure that facilitates rapid queries on specific
field values. Thunderbolt uses balanced binary trees as the basis for its indexing structures. An indexed field is declared in the Data Base Definition by appending the keyword KEY after the data type specification. Any data type except the MEMO data type can be declared as an index. For alphanumeric fields (data type X), the length of an indexed field cannot exceed 256 characters. If a field occurs in more than one table, each instance of the field must have a KEY declaration if that instance is to be included in the index. [It is permissible to have one or more instances of a keyed field that are not keyed.] Additional key-qualifiers can be specified after the KEY keyword to modify the behavior of an index. Key-qualifiers are described in the Indexing document. |
A temporary table is a table that materializes
when the database is opened, and de-materializes when the database is closed. A
unique instance of a temporary table is created for each user. Temporary Tables are usually used to store computed intermediate results. Because each user has a unique instance of a Temporary Table, multiple users can operate simultaneously on the same Temporary Table without conflict. |
Copyright © 2019 , WhamTech, Inc. All rights reserved. This
document is provided for information purposes only and the contents hereof are
subject to change without notice. Names may be
trademarks of their respective owners.