Função - Remove caractere especial

SQL: 

create or replace function remove_char_esp(xvalor in varchar) return varchar2 deterministic is
begin
  return trim(replace(translate(xvalor,'_ = . [ ] ; > <  - / ! @ # $ % ¨ & * ( ) \ + { }',' '),' ',''));
end;

Chamada da função: 

select remove_char_esp('Caracter (-@-) Especial!') from dual

Retorno: 

CaracterEspecial

Revisão #1
Criado 9 March 2022 11:45:16 por Nicolly Andrielly
Atualizado 9 March 2022 11:46:22 por Nicolly Andrielly