postgresql - ~~ Postgres 中的运算符

标签 postgresql operators

我有一个查询 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. LIKE 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.

关于postgresql - ~~ Postgres 中的运算符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21925796/

相关文章:

sql - 如何在 PostgreSQL 中对整数数组进行过滤和求和

java - 如何检查违反了哪些约束?

scope - Sublime Text : scope selector operators

c++ - 在 C++ 中重载 == 和 != 运算符

javascript - 这个javascript表达式是做什么用的

postgresql - 级联触发器不起作用

postgresql - 将数据库导出到 Heroku 时出现错误

sql - 从 plpgsql 中的执行查询字符串返回值

php - PHP 中 if ( $a == $b and $a == $c ) 语句的简写表达式

c++ - 当我将运算符重载为模板时会发生什么?