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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question on REPLACE

Status
Not open for further replies.

safarijoe2000

Programmer
Jul 25, 2002
38
0
0
GB
Hello,

This is a simple one.

In a table I have a column (columnA) where my data shows some "unwanted" characters. I would like to replace all these characters with some others.

For example, I have on columnA some fields with the name: O'Connor, which I would like to change to O#Connor.

Could I use the REPLACE statement, to change ALL the fields (actually part of a string within that field) on a certain column WITH some other character.

Any help will be useful.

Thanks
 
Check out the STUFF() function.


Don


 
I have an faq that may assist. It doesn't use the replace, but you should be able to see it in action. I try to write my faqs so you can just copy the whole faq into a prg and run it.

Jim Osieczonek
Delta Business Group, LLC
 
Just like forgetting to attach a file.

Here is the faq: faq184-4326 Parsing Delimited Text

Jim Osieczonek
Delta Business Group, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top