Importing Data from CSV file into MySQL, Scientific Notation

試著忘記壹切 提交于 2019-12-24 17:43:37

问题


I am using a LOAD DATA INFILE to read from a CSV and insert into a MySQL table. The problem is that one column in the CSV is in scientific notation and when it is read and loaded into the table it won't go into a column of type DOUBLE, FLOAT, or REAL. Is there a solution to this?

114,2015-05-11 00:00:00.000,0,100,14,2.576927E+10,1.730594E+10,1.904524E+10,1.788426E+10,69.40149

In this one row of the CSV are the scientific notation values that when loaded via LOAD DATA INFILE just become 100000

来源:https://stackoverflow.com/questions/31547288/importing-data-from-csv-file-into-mysql-scientific-notation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!