MERGE WHEN MATCHED (Update) First - Teradata Database

SQL Data Manipulation Language

Product
Teradata Database
Release Number
15.10
Language
English (United States)
Last Update
2018-10-06
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata® Database

The sequence of actions when the MERGE statement executes are as follows:

1 All BEFORE triggers associated with UPDATE actions are applied.

2 All BEFORE triggers associated with INSERT actions are applied.

3 The UPDATE operations specified by the MERGE update specification and the INSERT operations specified by the MERGE insert specification are applied.

4 The system checks any specified constraints, which might result in referential actions being executed.

5 All AFTER triggers associated with UPDATE actions are applied.

6 All AFTER triggers associated with INSERT actions are applied.