sanjay
sanjay

Reputation: 61

excel csv to mysql-numbers >1000 becomes 1.00

While uploading excel csv to mysql i find that '1000' becomes 1.00 and max value remains 999.99. While uploading same table with microsoft words spreadsheet it is fine but it has limitation of numbers of rows.how i can upload large table to mysql, i have csv data in .text files that has to be converted to .csv

Upvotes: 0

Views: 558

Answers (2)

ESG
ESG

Reputation: 9425

It might be due to the thousand separator. Make sure that in your CSV, you see "1000" and not "1,000".

Also, see mySQL load data local infile incorrect number format, it might help you out.

Upvotes: 1

Andrius Naruševičius
Andrius Naruševičius

Reputation: 8578

The problem is either the formatting in your excel file or the limitations of numbers in your mysql table. Can you upload the file to google docs and show us the query which is used to create the table (alternatively - a screenshot of the table's structure)?

Upvotes: 0

Related Questions