Last active
March 31, 2022 18:35
-
-
Save e10a/1c074b25b8beb69054fa9bd28d3f6c6e to your computer and use it in GitHub Desktop.
Update user email
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 users | |
SET email=CONCAT('test+', id, '_', REPLACE(email, SUBSTR(email,INSTR(email,'@')+1),'amava.com')) | |
WHERE email NOT LIKE '%@amava.com'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment