dstjohnjr
asked on
How to construct SQL Search and Replace query
I need a sql query that will search and replace the following string of text inside a field in my database table. I want to replace the string ' with the single quote character. Right now, I have a bunch of LastName fields that look like this:
D'Antonio
O'Block
O'Brien
O'Donnell
O'Flaherty
Again, I just want to get rid of that HTML equivalent and use the literal single quote character instead.
TIA for assistance in constructing this query!
D'Antonio
O'Block
O'Brien
O'Donnell
O'Flaherty
Again, I just want to get rid of that HTML equivalent and use the literal single quote character instead.
TIA for assistance in constructing this query!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Had to give full points to this solution since A) it came in first, B) was the full working solution and C) the other solution did not work due to double quotes being used and not single quotes in the replace statement. Thanks for expert assistance!
You are most welcome.
Glad that helped.
Regards,
Kevin
Glad that helped.
Regards,
Kevin
Open in new window