update一般用来更新一个表中的字段。 update from可以用表1的B字段的值去更新表2的B字段,例如: update test2 set b=y.b from test2 x,test1 y where x.a=b.a