~~ Postgres中的运算符 [英] ~~ Operator In Postgres

查看:66
本文介绍了~~ Postgres中的运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Postgres 中有一个查询:

SELECT DISTINCT a.profn FROM tprof a, sap_tstc b, tgrc c 
WHERE ((c.grcid ~~ a.grcid) 
AND ((c.tcode) = (b.tcode)));

~~是什么意思?

推荐答案

来自 9.7.1.喜欢PostgreSQL文档的:

运算符~~等效于LIKE,而~~*对应于ILIKE.还有!~~!~~*运算符,分别表示NOT LIKENOT ILIKE. 所有这些运算符都是特定于PostgreSQL的.

The operator ~~ is equivalent to LIKE, and ~~* corresponds to ILIKE. There are also !~~ and !~~* operators that represent NOT LIKE and NOT ILIKE, respectively. All of these operators are PostgreSQL-specific.

这篇关于~~ Postgres中的运算符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆