Let’s say I have a simple table with two columns userid and email.
How can I change all the email values where the email value exists in more than one row?
For example, say the email value blah@blah.com exists in 4 rows. I don’t want to delete those 4 rows, I just want to set the email column of all 4 of those rows to ''.
What query would do that in MySQL?
1 Answer