~~ Postgres中的运算符 [英] ~~ Operator In Postgres
本文介绍了~~ Postgres中的运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Postgres 中有一个查询:
SELECT DISTINCT a.profn FROM tprof a, sap_tstc b, tgrc c
WHERE ((c.grcid ~~ a.grcid)
AND ((c.tcode) = (b.tcode)));
~~
是什么意思?
推荐答案
运算符
~~
等效于LIKE
,而~~*
对应于ILIKE
.还有!~~
和!~~*
运算符,分别表示NOT LIKE
和NOT ILIKE
. 所有这些运算符都是特定于PostgreSQL的.
The operator
~~
is equivalent toLIKE
, and~~*
corresponds toILIKE
. There are also!~~
and!~~*
operators that representNOT LIKE
andNOT ILIKE
, respectively. All of these operators are PostgreSQL-specific.
这篇关于~~ Postgres中的运算符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文