|
|
IMAGE/SQL Administration Guide: HP 3000 MPE/iX Computer Systems > Chapter 4 IMAGE/SQL Utility CommandsSPLIT |
|
Divides a mapped column into two or more smaller mapped columns.
Use the SPLIT command to divide mapped columns into smaller units. This is sometimes necessary because one data item can be used to contain information about several logically discrete units. When a TurboIMAGE/XL database becomes part of a DBEnvironment, it is no longer necessary to keep logically separate information in one mapped column. The SPLIT command can be used to divide mapped columns of this kind into several smaller more logically discrete mapped columns. Use the following guidelines when using the SPLIT command:
It is desirable to split mapped columns before IMAGE/SQL users access the attached database because when a mapped column is split, all user-created views containing the mapped column are dropped. When a mapped column is split, the definition for the mapped table to which this mapped column belongs is removed from the system catalog of the DBEnvironment. This also results in removal of definitions for hash, B-Tree, and third-party indices for the table. The new definition with additional columns for the mapped table is reentered in the system catalog of the DBEnvironment. In addition, new definitions for indices are also reentered in the system catalog of the DBEnvironment. (Definitions may not be the same as before.) If you split a mapped column which represents a TurboIMAGE key item or search item, the definitions for hash or B-Tree (if they exist) indices on the mapped column are not entered in the system catalog. For an example, if a key item is split but the related search item of the detail data set is not, definitions for hash and implicit B-Tree indices on the mapped search item will be entered in the SQL catalog. However, definitions for unique hash index and B-Tree index on the mapped key item will not be entered. Although the definitions for third-party indices are reentered in the system catalog, it is recommended that when you define the third-party index, you define the index on the whole item, and not substring especially starting from byte offset other than 1. For information on third-party indices, refer to your vendor's documentation. The mapped column INVENTORY.PART_INFO is of type CHAR(60) and contains the following units of information about parts in the order shown:
To split this mapped column into its logical units, issue the following command:
In the above example, INVENTORY.PART_INFO is split into three mapped columns. No alternative data type mapping exists for the specified data types. Therefore, it is not necessary to specify the :MappedType parameter because in this case the mapped types default to the following types:
The combined length of these three mapped columns equals the total length of the original mapped column, INVENTORY.PART_INFO. |
|