Skip to content

MySQL: Remove safety suffix form mail column

Itamar Shapira Bar-Lev edited this page Feb 2, 2015 · 1 revision

To remove a suffix (".test") that was added to migrated user emails, use this UPDATE:

UPDATE users SET mail = TRIM(TRAILING '.test' FROM mail);