Re: Properly Use Replace Command

2009-07-29 Thread Carlos Williams
On Wed, Jul 29, 2009 at 3:07 PM, Nathan Sullivan wrote: > Carlos, > > I think this does what you want: (untested though) > > UPDATE identities > SET email=replace(email, 'mail.', '') > WHERE email like '%mail.iamghost.com' That worked perfect! UPDATE identities -> SET email=replace(email, 'mail.'

RE: Properly Use Replace Command

2009-07-29 Thread Nathan Sullivan
sday, July 29, 2009 1:58 PM To: mysql@lists.mysql.com Subject: Properly Use Replace Command I know this seems very basic and I checked Google before posting but it appears that many of the manuals / guides online reference something a bit more extreme than what I am looking for. I am searching a ta

Properly Use Replace Command

2009-07-29 Thread Carlos Williams
I know this seems very basic and I checked Google before posting but it appears that many of the manuals / guides online reference something a bit more extreme than what I am looking for. I am searching a table called 'identities' and in that table there is a column called 'email'. Some people hav