Solved

how eliminate character special in PL/SQL

Posted on 2007-03-27
2
1,813 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.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now