我得到了经度和纬度,想要用[空间点]来存储这个位置,并将其存储在MySQL中。
有哪些查询和函数可以帮助我插入这些值..
DB::table('table')->insert([
'field' => DB::raw("SPECIAL_FUNC(X)"),
]);
Examples: http://dev.mysql.com/doc/refman/4.1/en/point-property-functions.html http://dev.mysql.com/doc/refman/5.0/en/populating-spatial-columns.html