oracle如何将一列更新为另外一列 A表中有name 日期 B表中有name 日期 但是A表中的name B表中的name是一对多关系
请问如何关联update 两表无法直接for update
select a.name,a.ADMISSIONNO,b.name,b.zyh from drgs_basy a,testbak b where a.name =b.name and DISCHARGEDATE between to_date('2018-05-01 00:00:00','yyyy-mm-dd hh24:mi:ss')
and to_date('2018-05-31 23:59:59','yyyy-mm-dd hh24:mi:ss') for update 如何写update语句写了几个update语句都是报错的
请问如何关联update 两表无法直接for update
select a.name,a.ADMISSIONNO,b.name,b.zyh from drgs_basy a,testbak b where a.name =b.name and DISCHARGEDATE between to_date('2018-05-01 00:00:00','yyyy-mm-dd hh24:mi:ss')
and to_date('2018-05-31 23:59:59','yyyy-mm-dd hh24:mi:ss') for update 如何写update语句写了几个update语句都是报错的
还有你是更新A 还是B 你这些没说清楚