Scalable Database Server, HiRDB Version 8 Command Reference
You can use the extdat statement to use the following extended functions with input data files in the DAT format:
When you specify the extdat statement, then, whether or not the operands are specified, you can change the enclosing character and use all extended functions other than capability to store decimal-point data in INTEGER or SMALLINT columns.
The enclosing character is the character specified in the enclose operand of the extdat statement. When this operand is omitted, the double quotation mark (") is used as the enclosing characters.
If the data immediately before or after a separator character is closed in the enclosing characters, the enclosing characters are not input. However, any enclosing character contained in the character string that is enclosed in the enclosing characters is input.
In the DAT format, the double quotation marks are used as the enclosing characters (you cannot change this enclosing character).
extdat [enclose=enclosing-character]
[decin={yes|no}]
|
<character string> ((1 byte))
Specifies the enclosing character to be used to enclose each column value of the input data.
Specifies whether or not data with a decimal point is to be stored in INTEGER and SMALLINT columns.
If the input data of the character string data, national character string data, mixed character string data, or BINARY type is enclosed in the enclosing character, the utility treats the null character (0x00), linefeed code (0x0a), and carriage-return code (0x0d0a) as data. If the input data is not enclosed in the enclosing character, the utility treats the null character, linefeed code, and carriage-return code as delimiters for data or the end of line.
For example, suppose CHAR(16) data is "California\0Napa". If you specify the extdat statement, California\0Napa is entered; otherwise, you cannot enter this data.
You can enter data of the numeric, date interval, and time interval data types even when the data contains an enclosing character ("). In the DAT format, you cannot enter such data.
The utility deletes all single-byte spaces and tabs from the input data section of columns of the numeric, date, date interval, time, and time interval, and time stamp data types. For details about the handling when the entire data is single-byte spaces or tabs, see 5.9 Null and default values during data loading.
The utility treats the character specified in the enclose operand as the enclosing character.
The utility treats any two consecutive enclosing characters as a single data item. This rule also applies to multi-byte codes. If a code assigned to a Gaiji character matches an enclosing character, the code may result in an input data error. In such a case, you must change the enclosing character.
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.