UPDATE A SET a.name = m.name FROM item A INNER JOIN table M ON A.id=M.id WHERE a.xx <> M.xx 转载于:https://www.cnblogs.com/historylyt/p/9259350.html