Oracle merge into 记录
来源:互联网 发布:电影社交网络真实么 编辑:程序博客网 时间:2024/05/29 19:20
MERGE INTO table_name(目的表) table_alias USING (table/view/sub_query)//数据来源(可以用子查询)alias(别名)on(连接条件)WHEN MATCHED THEN UPDATE SET(关键字) (修改目的表) 目的表AL.col1=原表AL.col_var1 目的表AL.col2=原表AL.col2_var2WHEN NOT MATCHEN THEN(关键字) INSERT (目的表AL.COL_LIST) VALUES(原表AL.COL_VARS);(插入原表)
MERGE INTO products pUSING newproducts npON (p.product_id = np.product_id)WHEN MATCHED THENUPDATESET p.product_name = np.product_name, p.category = np.categoryWHERE np.category = 'BOOKS'WHEN NOT MATCHED THENINSERTVALUES (np.product_id, np.product_name, np.category)WHERE np.category = 'BOOKS'
0 0
- Oracle merge into 记录
- Oracle merge into 批量操作可以支持重复记录
- Oracle select --merge into:
- oracle merge into 测试
- oracle merge into
- oracle merge into 实例
- Oracle 之 MERGE INTO
- Oracle:merge into
- Oracle数据库merge into
- oracle merge into
- oracle merge into
- oracle merge into用法
- merge into(oracle)
- ORACLE MERGE INTO
- oracle merge into 用法
- oracle merge into
- Oracle merge into 命令
- oracle的merge into
- 第4章 树
- 使用VirtualBox安装Ubuntu系统搭建hadoop环境
- C++: string的大小写转换
- R语言做聚类分析Kmeans时确定类的个数
- 《人月神话》读书总结
- Oracle merge into 记录
- JAVA 下中文乱码的测试与转换
- maven第三方jar包上传nexus
- JAVA 下中文乱码的测试与转换
- 关键字:register static extern const typedef volatile
- scrapy测试xpath
- 项目管理任务分配工具——jira
- 最小二乘法解的矩阵形式推导
- 通关!游戏设计之道的学习笔记(二)创意