표준 sql 에서는 if는 존재하지 않고 mysql에서만 전용 명령어로 제공하는 듯
그래서 그 대신에 case - when - then - end 구조로 처리하게 된다.
[링크 : https://devbox.tistory.com/entry/DBMS-CASEWHENTHEN]
| CASE WHEN condition THEN result [WHEN ...] [ELSE result] END | 
[링크 : https://www.postgresql.org/docs/9.1/functions-conditional.html]
'프로그램 사용 > postgreSQL' 카테고리의 다른 글
| join (0) | 2019.08.27 | 
|---|---|
| postgresql ROW_COUNT (0) | 2019.08.27 | 
| order by group by (0) | 2019.08.26 | 
| postgresql 정규 표현식 검색 (0) | 2019.08.26 | 
| sql ||과 concat() (0) | 2019.08.22 | 






