Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个表 T1 和 T2 具有相同的列(服务,desti,...) T1 上的复合主键(服务,desti)我想将 t1 更新为 t2 中的数据。
请建议,
提前致谢
我想这就是你要问的:
update t1 set col1 = t2.col1, col2 = t2.col2, etc from t2 where t1.service = t2.service and t1.desti = t2.desti