Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need help in using replace function with special characters

DevGuyMay 22 2009 — edited May 26 2009
I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.

The data looks like this:

CREEK'S LANE

ie for a street named CREEK'S LANE.

I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE

When I try the query below I get prompted for substitution variable value.
I don't seem to be able to find the right syntax to make this query work.

SELECT REPLACE (street_name, ''', '''')
FROM
streets WHERE street_id = 1

Does anybody know how to do this?
Any help would be much appreciated.

Thanks.
George
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2009
Added on May 22 2009
9 comments
1,628 views