我似乎找不到文档化的地方,无法成功地准备使用POINT数据类型的语句。$stmt = $this->conn->prepare("INSERT INTO days(day,POINT(lat,lon)) VALUES(?,?;这仅仅是返回和错误:
You have an error in your SQ
我正在mysql 8上尝试以下insert查询。fenceGeometry=ST_GeomFromText('POINT(102.1893310546875 3.880696482497261)', 4326)
它在MySQL5.7上运行得很好,但是在MySQL8中,我得到了这个error Latitude 102.189331 is out of range in function st_geomfromtext.
我将多边形的坐标保存在MYSQL数据库中,下面是表的结构: `id_localite` int(11) NOT NULLAUTO_INCREMENT, `lat_localite` text NOT NULL,
`long_localitelat_localite列仅包含纬度坐标,long_localite列仅包含经度坐标,我通过使用Javascript并将内容写入