How to write this MySQL update statement:
table1
identity
table2
memberid, username, email
Some values in identity of table1 are email, some are username, how to replace the values in identity of table1 with the corresponding value of memberid of table2?
1 Answer