Solved

how eliminate character special in PL/SQL

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

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…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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 syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

863 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

23 Experts available now in Live!

Get 1:1 Help Now