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.
如果列相同,我想test1用另一个表中的列值更新表中的列值。test2provisionid, categoryid, differencetype
test1
test2
provisionid, categoryid, differencetype
有什么建议么?
UPDATE t1 SET SomeColumn = t2.SomeColumn FROM test1 t1 INNER JOIN test2 t2 ON t1.provisionid = t2.provisionid AND t1.categoryid = t2.categoryid AND t1.differencetype = t2.differencetype;