mssql

  UPDATE Test_BR SET Test_BR.VERSION =  Test_BR2.VERSION2  FROM Test_BR2  inner join Test_BR   on Test_BR.code = Test_BR2.code2 

mysql

UPDATE table1
INNER JOIN table2 
on table1.id=table2.id 
set table1.remark=table2.name

oracle

MERGE INTO table1 t1
USING
 table2  t2
ON(t1.classname = t2.classname)
WHEN MATCHED THEN UPDATE SET
t1.remark = t2.remark 

 

posted on 2020-12-23 16:20  枫叶飘零黄昏血  阅读(122)  评论(0编辑  收藏  举报