postgres 中的 @> 运算符有什么作用?

2024-04-09

我在 postgres 中遇到了一个查询here http://johanndutoit.net/searching-in-a-radius-using-postgres/它使用@>地球物体上的操作员。

我到处搜索过,但对这个运算符的含义一无所知(可能还有其他类似的运算符,例如:@<, ETC...)。

这是否记录在 postgres 文档中?我更好奇地想了解操作员在地球物体上做什么。


一般来说@>是“包含”运算符。

它是为多种数据类型定义的。

  • arrays: http://www.postgresql.org/docs/current/static/functions-array.html http://www.postgresql.org/docs/current/static/functions-array.html
  • 范围类型:http://www.postgresql.org/docs/current/static/functions-range.html http://www.postgresql.org/docs/current/static/functions-range.html
  • 几何类型:http://www.postgresql.org/docs/current/static/functions-geometry.html http://www.postgresql.org/docs/current/static/functions-geometry.html
  • JSON(和 JSONB):http://www.postgresql.org/docs/current/static/functions-json.html http://www.postgresql.org/docs/current/static/functions-json.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

postgres 中的 @> 运算符有什么作用? 的相关文章

随机推荐