1
I am developing an application that needs to automatically export excel sheets to the database. I’m using Mysql, but the spreadsheet data is not all well formatted the way the database accepts.
I’ve already set out as utf8_general_ci
, all tables with utf8
and did not solve. The problem is when I read a number of type 1.478,45
and it can’t store in a variable like double
or float
.
How to proceed?
Because the number does not follow this format. It only has decimal point division (it does not have the thousand separator). And normally the decimal separator is "
.
" and not ",
" unless configured with the appropriate locale– Jefferson Quesado
Nor should it be stored in this format. In DB the data should always be stored by its value, not by its "aesthetic". Storing number with thousand separator in DB is almost how to want to "store text in bold". DB does not have these visual concepts.
– Bacco