MySQL 的 IFNULL 查询

SELECT * FROM 用户表 ORDER BY IFNULL(nickname, realname);

SELECT IFNULL(NULL,10); -- > 10

编程技巧