mysql 5.6.35 ST_Contains返回null

时间:2017-02-19 09:54:07

标签: mysql

SELECT 
  ST_Contains (
    GEOMFROMTEXT(
      'POLYGON(18.4560233 73.8691627, 18.456333 73.869013, 18.456363 73.869404, 18.456200, 73.869383,18.4560233 73.8691627)'
    ),
    GEOMFROMTEXT('POINT(18.456266, 73.869210)')
  ) 
FROM
  DUAL 

1 个答案:

答案 0 :(得分:0)

选择     ST_CONTAINS
        (              GEOMFROMTEXT(' POLYGON((18.4560233 73.8691627,18.456333 73.869013,18.456363 73.869404,18.456200 73.869383,18.4560233 73.8691627))#);       GEOMFROMTEXT(' POINT(18.456266 73.869210)'))

FROM DUAL