判断排名这个字段是否为空,为空就直接展示,不为空就在后面拼接“名”
MYSQL\SQLSERVER
SELECT (CASE WHEN ISNULL(排名,'')='' then '' else 排名+'名' END) AS 'PM'
ORACLE
SELECT (CASE WHEN NVL(排名,'')='' then '' else 排名+'名' END) AS 'PM'