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!

Remove Space from Column

976439Feb 26 2013 — edited Feb 27 2013
Hi, just wanted to some help in regards to removing spaces from my username column. I have used the following code to remove the double space to a single space.
regexp_replace(table_a.username, ' {2,}', ' ')
but when looking through my answers I have noticed that there is an extra in some names at the end of the field as well. The initial double space was between first name and last name but now I have to replace the end space completely, but not sure how.

If somebody could please advise.

Thanks in advance.
This post has been answered by Frank Kulash on Feb 26 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2013
Added on Feb 26 2013
3 comments
370 views