"景先生毕设|www.jxszl.com

oracle 多表关联更新

2023-09-12 15:40编辑: www.jxszl.com景先生毕设
                            oracle 多表关联更新
将table 1 中的name 字段更新成table2 中的 name字段,
关联条件 id
table1 条件 date

例句:
update table1
set  table1.name =(select table2.name  from table2 where  table1.id = table2.id)
where table1.date>=to_date('2014-01-01','yyyy-mm-dd')
原文链接:http://www.jxszl.com/biancheng/shujuku/445421.html