MySQL INSERT/UPDATE on POINT column

后端 未结 2 1083
野的像风
野的像风 2021-02-06 04:03

I\'m trying to populate my DB with geographical places of my country. One of my tables have 4 fields: ID[PK], latitude. longitude ande geoPoint

EDIT `SCDBs`.`Pu         


        
2条回答
  •  既然无缘
    2021-02-06 04:35

    You need to use this syntax:

    UPDATE ... SET latitude=18, longitute=-63, geoPoint=GeomFromText('POINT(18 -63)') WHERE ...
    

提交回复
热议问题