[英]oracle sql writing merge statement inside a select
伙計們可以在下面的選擇中為相關子查詢編寫合並語句
我的要求是我從top select statement
傳遞到每個日期,並且對於每個日期select statement inside using clause
應檢查該日期是否存在任何數據然后插入或更新
select date from A a where exists (
merge in to B b
using (
)
..
..
)
當然,你只是想使用SELECT的使用條款里面 ?
merge into B b
using (
select ... where datecol = (select datecol from A a where ...)
)
..
..
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.