[php] [Mysql] ifnull
페이지 정보

본문
[Mysql] ifnull
필드값이 NULL일 경우 에러가 발생하면 특정값으로 대체한다.
select ifnull(max(rank),-1) from table
select ifnull(name,'MintSate') form table
필드값이 NULL일 경우 에러가 발생하면 특정값으로 대체한다.
select ifnull(max(rank),-1) from table
select ifnull(name,'MintSate') form table
관련링크
- 이전글[php] [Mysql] Maximum execution time of 30 seconds exceeded 09.12.11
- 다음글[php] [Mysql] DATE_FORMAT 과 CURDATE() 이용하여 날짜 비교하기 09.12.11
댓글목록
등록된 댓글이 없습니다.