Is the following possible with just a sql query or do I need to create a php routine?
I have a database of members with gmail addresses, most of which contain 1 or more '.' (dots) in the address before the '@'
For the purposes of thwarting duplicate/multiple signups I am creating a new column that will contain the 'clean' gmail address so I can make comparisons going forward on new registrations.
Example... I have rows which the following gmail addresses are actually all the same in the eyes of gmail.
myname@gmail.com
m.yname@gmail.com
my.name@gmail.com
m.y.n.a.m.e@gmail.com
I know replace() can simply replace something with something, but I want to replace all dots before the @
Is there a sql function/statement I can use to clean up all the dots before the '@' or do I have to create a php routine to achieve this?