Morning everyone,
I have a csv file that I'm trying to import that has cost values, e.g. 1,456. When I run an import from phpMyAdmin2.6.1 the data after the comma is stripped. If I view the csv with notepad the cost value has " " around it.
Below is the sql query results:
LOAD DATA LOCAL INFILE 'd:\\PHP\\uploadtemp\\php380D.tmp' INTO TABLE `usage_test` FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'
Inserted rows: 5477 (Query took 0.0716 sec)
I also tried running the import from the CLI, but recieve the same results.
Any suggestions or has someone seen this before? I checked the forum, but don't find anything specifically relating to the same scenario.
I have a csv file that I'm trying to import that has cost values, e.g. 1,456. When I run an import from phpMyAdmin2.6.1 the data after the comma is stripped. If I view the csv with notepad the cost value has " " around it.
Below is the sql query results:
LOAD DATA LOCAL INFILE 'd:\\PHP\\uploadtemp\\php380D.tmp' INTO TABLE `usage_test` FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'
Inserted rows: 5477 (Query took 0.0716 sec)
I also tried running the import from the CLI, but recieve the same results.
Any suggestions or has someone seen this before? I checked the forum, but don't find anything specifically relating to the same scenario.