Home >Database >Mysql Tutorial >Oracle Merge 实现更新/插入记录的自动判断

Oracle Merge 实现更新/插入记录的自动判断

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:17:201214browse

在 SQL MAP 中定义这样的 SQL ,ORACLE 数据库中, 如果有 s.post=t.post and s.FLISK_ID=t.FLIGHK_ID 这 2 个条件和传入的数据

Oracle Merge 实现更新/插入记录的自动判断

[日期:2012-07-30] 来源:Linux社区  作者:jxdwuao [字体:]

在 SQL MAP 中定义这样的 SQL ,Oracle 数据库中,, 如果有  s.post=t.post and s.FLISK_ID=t.FLIGHK_ID

这 2 个条件和传入的数据相等的, 那么就执行 UPDATE   SET  语句。 否则执行  INSERT 语句。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn