Problem Storing Latitude and Longitude values in MySQL database

前端 未结 7 891
逝去的感伤
逝去的感伤 2020-12-24 03:19

I want to store the values of latitude and longitude fetched from Google Maps GeoCoding API in a MySQL database. The values are in float format.

12.92

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-24 04:03

    Alter your table so it's a double precision float instead of a single precision float:

    alter table properties modify latitude double, modify longitude double;
    

提交回复
热议问题