I have a mysql table with usernames and their mail address. I want to update the values in usernames row to be the same as the mail address except the domain. For example, in [email protected] the user will be updated with "jondoe".
Is there any possibility to do this with a query?