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!

deleting() using if statement

Status
Not open for further replies.

yld53x

Programmer
Oct 9, 2002
8
0
0
AU
hi

i'm importing a table with phone numbers (home and mobile) eg (07) 555555 and (0412) 00000.

in design query how can i get rid of the () and leave it at 07555555 and 041200000.

thanks
 
update yourtable
set phonenumber =
replace(replace(phonenumber,')',''),'(','')
where phonenumber like '*[()]*'

rudy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top