Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field values shifting during load infile w/column list

Status
Not open for further replies.

elsenorjose

Technical User
Oct 29, 2003
684
US
I'm loading a text file into a MySQL database using the following (specifics obfuscated out of confidentiality purposes)

Code:
LOAD DATA INFILE 'file.txt'
INTO TABLE test_temp
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
IGNORE 5 LINES
(col3, col5, col8, col10);

The odd thing is that somehow during the load, everything is shifting one column to the right so that I end up with the data from field 2 in the text file in col3, field 4 in col5, etc. Very odd. Any thoughts?

MySQL 5.0.27 on Windows XP Pro SP2

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top