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

help with removing Punctuation

Status
Not open for further replies.
Apr 13, 2007
34
US
How can I remove Punctuation
from the address field like listed below?

555 S. 3829 W.#
 
Use the replace function.

Select Replace('555 S. 3829 W.#', '.', '')

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
use replace, example

Code:
create table blah222(Address varchar(666))
insert blah222 values('555 S. 3829 W.#')


select *,'before' from blah222

update blah222
set Address = replace(Address,'.','')

select *,'after' from blah222

Denis The SQL Menace
--------------------
SQL Server Code,Tips and Tricks, Performance Tuning
Google Interview Questions





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top