select substr(upper(rtrim(ltrim(lpad(rpad('william', 12, '*'), 24 - length('William'), '*'), '*'), '*')), 1, 5) teste from dual;
Compartilhar