schwizla
SSCrazy
Points: 2668
More actions
March 9, 2007 at 9:38 am
#153471
Hi, I have a column in a table popluted with 250 email addresses as follows
trevorh@cwexample.co.uk
maryJ@cwexample.co.uk
alexh@cwexample.co.uk
etc
how can I change the domain name part for all records in one go to say the follwoing
trevorh@cw.co.uk
maryJ@cw.co.uk
alexh@cw.co.uk
Thank you in advance, Siz
Lynn Pettis
SSC Guru
Points: 442467
March 9, 2007 at 9:58 am
#694130
Try this:
update sometable set
emailaddress = replace(emailaddress, '@cwexample.', 'cw.')
where
emailaddress like '%@cwexample.%'
March 9, 2007 at 10:06 am
#694135
thank for the quick reply to my question as always!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply