这里是多表的修改——效率高
UPDATE friends INNER JOIN users ON friends.friendid=users.userid
SET friends.friendname=users.username