sql:将 table1 中的数据更新到 table2 中

sql 语句:

UPDATE table1 SET fieldname1 = table2.fieldname1, [fieldname2 = table2.fieldname2] FROM table2
WHERE table1.Id = table2.Id
发布了37 篇原创文章 · 获赞 10 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_38404507/article/details/100040305