select coalesce(comm,0) from emp;

作用是返回函数coalesce参数中第一个不为null的值。