0
我似乎无法找到记录的位置,以便成功准备使用POINT数据类型的语句。如何在使用INSERT时使用mysqli编写带有POINT的SQL语句
上一个问题(How to use POINT mysql type with mysqli - php)显示标记为正确的东西,但不起作用。我甚至用他们简单的查询在他们的榜样尝试:
$stmt = $this->conn->prepare("INSERT INTO days(day,POINT(lat,lon)) VALUES(?,?,?)");
$stmt->bind_param("sdd", $day, $lat, $lon);
这只是简单的返回和错误:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(lat,lon)) VALUES(?,?,?)' at line 1
'INSERT INTO days(day,point)VALUES(?,POINT(?,?))'!? – JustOnUnderMillions