缺少关键字USING也能成功?
sorry,上面只是手写一个例子,漏了using,但是生产上确实跑成功了,有人知道为什么吗?
merge into tbl a
using
(select col , col2
from tbl2) b
on (a.col = '2')
when matched then update
set a.col = b.col
sorry,上面只是手写一个例子,漏了using,但是生产上确实跑成功了,有人知道为什么吗?
merge into tbl a
using
(select col , col2
from tbl2) b
on (a.col = '2')
when matched then update
set a.col = b.col
解决方案 »
- Oracle面试题
- Oracle update特别慢,比insert慢很多很多
- 急,急,急!ORA-12547:TNS丢失联系
- 通过更新数据时,出现“ORA-01403: 未找到数据”错误
- 何为平行查询
- 求救:存储过程循环查表数据插入表值都累加在最后了
- 疑惑我已经结贴的一个问题
- 请问:查询语句select * from 表名(表句可以用表达式吗?)
- 求查询当前年份以及上一年的所有记录sql语句?
- an oci question
- .net远程连接Oracle无法连接,求大牛赶紧来救援!!!!!!!!!!!!!!!!!!!!!!!!!!
- orecle select function 不是group by 表达式
sorry,上面只是手写一个例子,漏了using,但是生产上确实跑成功了,有人知道为什么吗?
merge into tbl a
using
(select col , col2
from tbl2) b
on (a.col = '2')
when matched then update
set a.col = b.colselect col , col2 from tbl2返回多条数据还是单条数据??
sorry,上面只是手写一个例子,漏了using,但是生产上确实跑成功了,有人知道为什么吗?
merge into tbl a
using
(select col , col2
from tbl2) b
on (a.col = '2')
when matched then update
set a.col = b.colselect col , col2 from tbl2返回多条数据还是单条数据??估计就一条,不然它怎么更新