Created
December 22, 2016 03:33
-
-
Save milesw/8268453c1efb4b20fdd1f78564b0eed2 to your computer and use it in GitHub Desktop.
MySQL - blank out domains in email addresses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE table_name | |
SET email_field = CONCAT(LEFT(email_field, INSTR(email_field, '@')), 'localhost.localdomain') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment