IFNULL(expr1,expr2)函数,这个函数只能判断是否为空

SELECT
CONCAT(first_name,',',last_name,',',job_id,IFNULL(commission_pct,0)) AS out_put
FROM
employees;

05-11 20:13