我在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文档将mask'anyintersect'定义为“ANYINTERACT:如果对象不是不相交的,则返回TRUE。”那么为什么oracle为我的查询1返回记录a1并且为QUERY2 ??
返回none答案 0 :(得分:0)
你有一个错字。
sdo_relate(a1.shape,a1.shape,'mask=anyintersect')
sdo_relate(a1.shape,a1.shape,'mask=anyinteract')