更新一個表的字段值等於另外一個表的字段值

update a set a.ty2=b.ty1 from t2 a,t1 b where a.n2=b.n1 更新t2表的ty2字段的值爲t1表的ty1字段的值,條件是a表的n2=b表的n1
相關文章
相關標籤/搜索