Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how eliminate character special in PL/SQL

Posted on 2007-03-27
2
1,817 Views
Last Modified: 2012-08-13
i have this problem, i receive from java aplication a input parameter with character special non printable.

How do i to eliminate this characters in PL/SQL

regards

Gerid Garcia
0
Comment
Question by:yerai
2 Comments
 
LVL 10

Accepted Solution

by:
ravindran_eee earned 500 total points
ID: 18804998
Hi,

Use the below Oracle function..

create or replace function remove_special_chars (i_input varchar2)
return varchar as
l_temp varchar2(100);
o_output varchar2(100);
i number;
begin
for i in 1..length(i_input)
loop
select substr(i_input,i,1) into l_temp from dual;
if ascii(l_temp) >= 32 or ascii(l_temp) <= 126 then
o_output := o_output || l_temp;
end if;
end loop;
return o_output;
end remove_special_chars;
/

Thanks,
Ravindran
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question