I want to quickly update a table to get rid of any real data that got pulled down to a test server.
UPDATE users SET email = CONCAT ("fake", users.id, "@mycompany.org")
Is anything like that possible or will I need to write a script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, the query you are using will work. That is, for a row like:
It’ll update and set the email to:
And similarly for all the rows in the entire table.