1

我在 oracle 11g 中运行以下查询:

1)select a1.apid from access_point a1 where sdo_relate(a1.shape,a1.shape,'mask=equal') = 'TRUE' and a1.apid = 'a5vhe';

2)select a1.apid from access_point a1 where sdo_relate(a1.shape,a1.shape,'mask=anyintersect') = 'TRUE' and a1.apid = 'a5vhe';

现在 oracle 11g 文档将掩码“anyintersect”定义为“ANYINTERACT:如果对象不不相交,则返回 TRUE。” 那么为什么 oracle 为我的 Query 1 返回记录 a1 而为 QUERY2 返回 none 呢?

4

1 回答 1

0

你有一个错字。

  • 不正确:sdo_relate(a1.shape,a1.shape,'mask=anyintersect')
  • 正确的:sdo_relate(a1.shape,a1.shape,'mask=anyinteract')
于 2013-01-16T07:14:41.373 回答