Merge delete statement for database operations
Abstract
Conditional functionality is provided for database merge operations. A merge operation, for merging data from a source to a destination, involves performing a default operation for each source record. Default operations associated with a MERGE statement include UPDATE and INSERT operations. Which default operation is performed depends on whether any destination record corresponds to a given source record. In an embodiment, whether a specified condition is satisfied is determined. If the condition is satisfied, then the default operation that is appropriate for a given source record is performed. If the condition is not satisfied, then the given source record is processed without performing the appropriate default operation. In one aspect, the UPDATE clause of the MERGE statement is extended to include a conditional DELETE clause. Hence, records are deleted as appropriate based on a temporary updated state, as part of the same process as the update operation, without an additional table scan and without having to first update the record in shared memory or in persistent storage.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 13.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for performing a merge operation for merging data from a source to a destination, wherein the merge operation involves performing a default operation for each source record, wherein the default operation performed for each source record is based on whether any destination record corresponds to the source record, the method comprising the computer-implemented steps of: determining whether a condition is satisfied; if the condition is satisfied, then performing the default operation appropriate for a particular source record; and if the condition is not satisfied, then processing the pa
- Claim 2Depends on #1
The method of claim 1 , wherein the step of determining whether the condition is satisfied is based on at least one of the particular
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (2)
- Oracle Corporation, "Oracle9i Database Daily Feature, MERGE Statement," published Sep. 17, 2002, 3 pages.
- Shirinne Alison, et al., Oracle Corporation, "Oracle9i Warehouse Builder, User's Guide," Release 9.0.3, Mar. 29, 2002, Part No. A97306-01, 35 pages.