Author: paul
Date: 2007-07-31 19:37:42 +0200 (Tue, 31 Jul 2007)
New Revision: 7289
Log:
r28079@polar: paul | 2007-07-31 11:05:48 -0500
LOAD DATA INFILE interprets all fields as having the same character set,
regardless of the data types of the target table.
As of MySQL 4.1, the character set indicated by the
character_set_database system variable is
used to interpret the information in the file. SET
- NAMES and the setting of
- character_set_client do not affect
- interpretation of input.
+ NAMES and the setting of the
+ character_set_client system variable do not
+ affect interpretation of input.
+ LOAD DATA INFILE interprets all fields in the
+ file as having the same character set, regardless of the data
+ types of the columns into which field values are loaded. For
+ proper interpretation of file contents, you must ensure that it
+ was written with the correct character set. For example, if you
+ write a data file with mysqldump -T or by
+ issuing a SELECT ... INTO OUTFILE statement
+ in mysql, be sure to use a
+ option with
+ mysqldump or mysql so that
+ output is written in the character set to be used when the file
+ is loaded with LOAD DATA INFILE.
+
+
+
Note that it is currently not possible to load data files that
use the ucs2 character set.
+ types of the columns into which field values are loaded. For
+ proper interpretation of file contents, you must ensure that it
+ was written with the correct character set. For example, if you
+ write a data file with mysqldump -T or by
+ issuing a SELECT ... INTO OUTFILE statement
+ in mysql, be sure to use a
+ option with
+ mysqldump or mysql so that
+ output is written in the character set to be used when the file
+ is loaded with LOAD DATA INFILE.
+
+
+
Note that it is currently not possible to load data files that
use the ucs2 character set.
+ LOAD DATA INFILE interprets all fields in the
+ file as having the same character set, regardless of the data
+ types of the columns into which field values are loaded. For
+ proper interpretation of file contents, you must ensure that it
+ was written with the correct character set. For example, if you
+ write a data file with mysqldump -T or by
+ issuing a SELECT ... INTO OUTFILE statement
+ in mysql, be sure to use a
+ option with
+ mysqldump or mysql so that
+ output is written in the character set to be used when the file
+ is loaded with LOAD DATA INFILE.
+ LOAD DATA INFILE interprets all fields in the
+ file as having the same character set, regardless of the data
+ types of the columns into which field values are loaded. For
+ proper interpretation of file contents, you must ensure that it
+ was written with the correct character set. For example, if you
+ write a data file with mysqldump -T or by
+ issuing a SELECT ... INTO OUTFILE statement
+ in mysql, be sure to use a
+ option with
+ mysqldump or mysql so that
+ output is written in the character set to be used when the file
+ is loaded with LOAD DATA INFILE.
+
+
+
Note that it is currently not possible to load data files that
use the ucs2 character set.