Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
The MERGE statement as in https://en.wikipedia.org/wiki/Merge_(SQL) should be implemented.
Attachments
Issue Links
- is blocked by
-
MDEV-13648 Add FULL OUTER JOIN to MariaDB
-
- Open
-
- is part of
-
MDEV-10872 Providing compatibility Oracle database
-
- Open
-
It would be nice to have the MERGE implemented like in SQL Server 2008 and not like in Oracle or DB2:
MERGE
targetTable
USING
sourceTable
ON
mergeCondition
updateStatement
insertStatement
deleteStatement
This implementation allows for the switch WHEN NOT MATCHED, WHEN NOT MATCHED BY TARGET and WHEN NOT MATCHED BY SOURCE
Oracle and DB2 only allow WHEN NOT MATCHED.
https://www.essentialsql.com/introduction-merge-statement/