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陳述句都是報錯的
uj5u.com熱心網友回復:
你的資料是什么樣的,要的結果又是什么樣的,用 Excel 簡單的畫一下。uj5u.com熱心網友回復:
for update 對連表的查詢是不允許更新的。還有你是更新A 還是B 你這些沒說清楚
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/66623.html
標籤:高級技術
