Академический Документы
Профессиональный Документы
Культура Документы
QUOTES OFF
STRIP OFF;
The LOAD TABLE statement above uses the input value list ( line_text ) to
specify that the input file only contains data for the line_text column, not the
line_number column. The DEFAULTS ON option is used so the DEFAULT
AUTOINCREMENT feature will work to generate line_number values; by
default, the LOAD TABLE command does not fill in DEFAULT values. The
DELIMITED BY '' option specifies nothing should be treated as a field delim-
iter, and ESCAPES OFF says theres no need to look for escape characters
either. QUOTES OFF tells LOAD TABLE to treat leading quotes as part of the
data and to preserve leading spaces. STRIP OFF tells LOAD TABLE to pre-
serve trailing spaces.
Here is a sample input file designed to demonstrate some of the challenges
involved in getting LOAD TABLE to store the text without reformatting it:
This is a flat text file, containing free-form text with embedded
commas, 'single quotes', and "double quotes". Even lines with
'leading and trailing quotes will be stored as is.'
It will be stored in the line_text column as is, line-by-line, with
one line per row. Empty lines