Aub*_*bin 3 mysql spatial errors
以下简单测试返回错误
CREATE TABLE track (
position point NOT NULL
);
INSERT INTO track VALUES (
position=ST_PointFromText('POINT(-45.62390335574153 -3.9551761173743847)')
);
Run Code Online (Sandbox Code Playgroud)
错误:
错误 1416 (22003):无法从发送到 GEOMETRY 字段的数据中获取几何对象
我究竟做错了什么?
错误的语法......而不是
INSERT INTO track VALUES (
position=ST_PointFromText(...)
);
Run Code Online (Sandbox Code Playgroud)
用
INSERT INTO track SET
position=ST_PointFromText(...);
Run Code Online (Sandbox Code Playgroud)
参考:https : //dev.mysql.com/doc/refman/5.7/en/insert.html