假设表table1的字段name,需要跟表table2的字段name值同步,那么可以这样写sql语句update table1 set name=a.namefrom table2 awhere a.id=table1.id