SQL*Plus (MOSC)

MOSC Banner

SQL Find and Replace to remove unwanted characters in a text field.

edited Mar 7, 2012 2:25PM in SQL*Plus (MOSC) 14 commentsAnswered ✓
Hi,

Hope this is under the correct community, looked the most likely.

We have a requirement to remove certain characters such as -----, *****, ##### etc from a VARCHAR2 field.  It is 4000 bytes so contains lots of text and can have a number of the aforementioned characters in differing numbers within the text.

We need to remove the characters to just a single entry or altogether from the field without affecting the actual text.

Would look to do this with a sql script for each type using update but wondered if there is a find and replace type tool/option that would make the job easier.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center