Jump to content

[SOLVED] Need help importing data from txt file


jim.davidson

Recommended Posts

I'm running MySQl 4.1.22

 

I'm trying to import data into a table. I don't get an error, but nothing imports.

 

Table is simple, two fields

client_number  varchar(10)   

client_name  varchar(100)

 

Here is the data

 

"0101","AAUD"

"0102","ABACUS"

"0103","ADVANCED PLUMBING"

"0104","ADVANCED PROCESSES"

"0113","ANDRE INSURANCE"

"0114","ANDERSON CONSTRUCTION"

"0115","ANDERSON INSURANCE"

"0116","ARKWOOD PRODUCTS"

"0117","ARNONI DEVELOPMENT"

"0118","ASOCIATED ACCITUARIES"

"0119","AUGUST  TRUCKING"

"2603","ZAMMERILLA"

   

Here is my query

 

LOAD DATA LOCAL INFILE "C:\client3.txt" INTO TABLE clients FIELDS TERMINATED BY ',' ENCLOSED BY '"'(

client_number, client_name

);

 

Here's the result I get

Inserted rows: -1 (Query took 0.0004 sec)

 

What am I doing wrong?

 

I'm trying to teach myself, but I'm stuck! Any help will be greatly appreciated.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.