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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading data problem

Status
Not open for further replies.

subhavs

Programmer
Nov 27, 2000
54
0
0
US
Hello everyone,

I am very new to MySQL and just started to play arounnd with it.

I have created a table with 4 fields and I am trying to populate this table with data from a flat file. The flat file has exactly 4 fields and they are separated by commas.

I am using the load data command as follows -
load data
local infile 'acdata.txt' replace
into table ACLookUp
fields terminated by ','
(Field1, Field2, Field3, Field4);
The data is not going in right. Two records from the file are getting loaded as one record in the table and the data is all jumbled up.

Am I doing something wrong ? Please help.

Thanks in advance.

- Subha :)
Nothing is impossible, even the word impossible says I'm possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top