码上敲享录 > mysql实战经验分享 > mysql插入 MultiPolygon数据Cannot get geometry object from data you send to the GEOMETRY field

mysql插入 MultiPolygon数据Cannot get geometry object from data you send to the GEOMETRY field

上一章章节目录下一章 2019-11-14已有188人阅读 评论(0)

mysql插入 MultiPolygon数据Cannot get geometry object from data you send to the GEOMETRY field


解决方法:

加ST_MultiPolygonFromText方法,如下所示:

INSERT INTO tb_real_estate (geom) VALUES (ST_MultiPolygonFromText('MULTIPOLYGON (((113.90255979839996 22.951296099692613, 113.902778095009998 22.951109346926103, 113.90285078409993 22.950771559926125)))'))


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
向大家推荐《ireport实战教程》:https://xiaozhuanlan.com/ireport?rel=6923152725
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交