Skip to content

[Mysql] ifnull

MintState November 3, 2008 at 11:15 AM Views 20832

[Mysql] ifnull

필드값이 NULL일 경우 에러가 발생하면 특정값으로 대체한다.
select ifnull(max(rank),-1) from table
select ifnull(name,'MintSate') form table

Share X Facebook LINE QR code

0 comments

Be the first to comment.