운영자에 포스트 그레스 :~~ 내가 <a href="http://www.postgresql.org/" rel="noreferrer">Postgres</a>에서 쿼리가
SELECT DISTINCT a.profn FROM tprof a, sap_tstc b, tgrc c
WHERE ((c.grcid ~~ a.grcid)
AND ((c.tcode) = (b.tcode)));
~~
이 무엇을 의미된다?
운영자에 포스트 그레스 :~~ 내가 <a href="http://www.postgresql.org/" rel="noreferrer">Postgres</a>에서 쿼리가
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에 고유합니다.
실망스러운 index of the documentation에는 나와 있지 않습니다.
그래서 내가psql
에보고했다 :
regress=> \do ~~
List of operators
Schema | Name | Left arg type | Right arg type | Result type | Description
------------+------+---------------+----------------+-------------+-------------------------
pg_catalog | ~~ | bytea | bytea | boolean | matches LIKE expression
pg_catalog | ~~ | character | text | boolean | matches LIKE expression
pg_catalog | ~~ | name | text | boolean | matches LIKE expression
pg_catalog | ~~ | text | text | boolean | matches LIKE expression
(4 rows)
그것은 LIKE
에 대한 연산자 별칭이의를, 그게 다야. PostgreSQL의 문서 9.7.1. LIKE 가입일