可以加条件,
when matched
then update set test_to.val = test_from.val
where test_to.col='test'
using后要加on关键字 表述你这个表gen_statistics和子查询之间的关系 如果你理解的不是很透彻 不建议用merge into 还是分别判断用insert update比较保险
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
哦你看太天