Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert %20 to a space

Status
Not open for further replies.

szeiss

Programmer
Apr 5, 2000
137
US
I have several columns in my table where the data was imported in this fashion this%20is%20a%20test. I need to convert this to a space for reporting such as in a SELECT statement.

Thanks,
Sherry
 
Jim's suggestion about your using REPLACE is excellent. In case you have never used it before, here is an example, using your exact string:
Code:
SQL> select replace ('this%20is%20a%20test.','%20',' ') from dual;

REPLACE('THIS%2
---------------
this is a test.
Let us know how your use of REPLACE turns out for you.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
It didn't quite work for me because of some wild characters, so I started looking and ended up using

regexp_replace('this%20is%20a%20test.','%2.',' ')


Thanks,
Sherry

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top