Hi,
I've got a dataset of city names with their corresponding latitudes/longitudes that I've loaded into a MySQL table, like so:
city_id | city_name | latitude DECIMAL(9,6) | longitude DECIMAL(9,6)
Typical latitude/longitude coordinates might look like this: 54.284758 / 32.484736.
However, I'm only getting values with a scale of 2 to appear correctly in my table, in other words, the equivalent of DECIMAL(5,2). The data is uploaded from a text CSV that's been exported from OpenOffice Calc for UTF-8 purposes. I know OpenOffice has some problems with decimals but the full latitude/longitudes are certainly in the exported CSV. If I open the CSV with Notepad, the data is fine.
Can anyone see what I might be doing wrong?
Thanks.
UPDATE: Got it working, thanks for the all the input. I recreated everything from scratch, new schema file (I'm using an ORM), new CSV export, new table, new LOAD DATA INFILE, and it works with the correct decimal output. Beats me.