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. |
[링크 : https://www.postgresql.org/docs/9.3/functions-matching.html]
SQL> select * from test where x ~ '[0-9]+'; -- "~" 는 "similar to" 의미입니다. |
[링크 : https://www.postgresdba.com/bbs/board.php?bo_table=B10&wr_id=44]
'프로그램 사용 > postgreSQL' 카테고리의 다른 글
unnest()로 regexp_matches()의 {} 벗기기 (0) | 2019.09.30 |
---|---|
postgresql 콤마 리스트를 열로 분리하기 - unnest() (0) | 2019.09.29 |
update case (0) | 2019.09.26 |
존재하는 테이블에 시퀀스 값 추가하기 (2) | 2019.09.26 |
sql group by like? (0) | 2019.09.25 |