** Mysql Null 처리 **
1. ifnull : Null if/else construct
ifnull(colid, '난 널이야') --> 결과 : colid가 null이면 : '난 널이야'
colid가 null이 아니면 : colid 값
2. nullif : Return NULL if expr1 = expr2
3. IF(pg.game_cd IS NULL, 'N', 'Y') AS old_chk
3. isNull()
- 예) isnull(game_degree) --> 결과 :true : game_degree 컬럼값이 null임
false : game_degree 컬럼값이 null이 아님
'(DB) MySql > Null. IF. CASE.FIELD 관련' 카테고리의 다른 글
MySql - IF. FIELD. CASE (0) | 2017.01.18 |
---|