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
相關文章
相關標籤/搜索