SQL两表之间:根据一个表的字段更新另外一个表的字段

1. 写法轻松,更新效率高: update table1 set field1=table2.field1, field2=table2.field2 from table2 where table1.id=table2.idspa   2. 常规方式,种写法至关于一个 Left join, 之外面的where为更新条数,若是不加where就是全部记录it update table1 set fi
相关文章
相关标签/搜索