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

how to delete a "-" in al rows? 1

Status
Not open for further replies.
Sep 21, 2004
108
US
I have a column, phone. The field uses this format, XXX-XXX-XXXX. The field has 3000 rows.
Is there a way I can get rid of all the "-" in all the rows and make the data to appear in a format of XXXXXXXXXX?
 
Code:
Update Table
Set    PhoneNumber = Replace(PhoneNumber, '-', '')

Since there is no where clause, this will affect all the records in the table.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top