people 테이블

ifnull함수 컬럼의 null값을 다른 값으로 변경할 때 쓴다.

select *, ifnull(age, 100)
from people;

+ Recent posts