Oracle 5.0 Reference Manual page 1097

Table of Contents

Advertisement

3,"a string containing a " quote",102.20
4,"a string containing a ", quote and comma",102.20
For input, the
ENCLOSED BY
regardless of whether
OPTIONALLY
Occurrences of the
ENCLOSED BY
as part of the current field value.
If the field begins with the
terminating a field value only if followed by the field or line
ambiguity, occurrences of the
interpreted as a single instance of the character. For example, if
quotation marks are handled as shown here:
"The ""BIG"" boss"
-> The "BIG" boss
The "BIG" boss
-> The "BIG" boss
The ""BIG"" boss
-> The ""BIG"" boss
FIELDS ESCAPED BY
• For input, if the
FIELDS ESCAPED BY
stripped and the following character is taken literally as part of a field value. Some two-character
sequences that are exceptions, where the first character is the escape character. These sequences
are shown in the following table (using "\" for the escape character). The rules for
described later in this section.
Character
Escape Sequence
An ASCII NUL (0x00) character
\0
A backspace character
\b
A newline (linefeed) character
\n
A carriage return character
\r
A tab character.
\t
ASCII 26 (Control+Z)
\Z
NULL
\N
For more information about "\"-escape syntax, see
If the
FIELDS ESCAPED BY
• For output, if the
FIELDS ESCAPED BY
characters on output:
• The
FIELDS ESCAPED BY
• The
FIELDS [OPTIONALLY] ENCLOSED BY
• The first character of the
• ASCII
(what is actually written following the escape character is ASCII "0", not a zero-valued
0
byte)
If the
FIELDS ESCAPED BY
NULL, not \N. It is probably not a good idea to specify an empty escape character, particularly if field
values in your data contain any of the characters in the list just given.
In certain cases, field- and line-handling options interact:
• If
LINES TERMINATED BY
also terminated with
LOAD DATA INFILE
character, if present, is stripped from the ends of field values. (This is true
is specified;
character preceded by the
character, instances of that character are recognized as
ENCLOSED BY
character within a field value can be doubled and are
ENCLOSED BY
controls how to read or write special characters:
character is not empty, occurrences of that character are
character is empty, escape-sequence interpretation does not occur.
character is not empty, it is used to prefix the following
character
FIELDS TERMINATED BY
character is empty, no characters are escaped and
is an empty string and
FIELDS TERMINATED
1077
Syntax
has no effect on input interpretation.)
OPTIONALLY
ESCAPED BY
TERMINATED BY
ENCLOSED BY '"'
Section 9.1.1, "String
character
and
LINES TERMINATED BY
FIELDS TERMINATED BY
BY.
character are interpreted
sequence. To avoid
is specified,
handling are
NULL
Literals".
values
is output as
NULL
is nonempty, lines are

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents