把名字拼空字符串,都变成最长的那个名字
参考
select sname, zb,
concat(case
when length(sname) = 2 then
sname || ' '
when length(sname) = 3 then
sname || ' '
else
sname
end,
zb) as sname
from (select '张三' as sname, '♥贡献值' as zb
from dual
union all
select '哈利波特' as sname, '♥贡献值' as zb
from dual
union all
select '白居易' as sname, '♥贡献值' as zb
from dual)