Help Center/ DataArts Studio/ User Guide/ DataArts Factory/ Node Reference/ Node Lineages/ DWS Syntax/ MERGE INTO
Updated on 2026-08-13 GMT+08:00
MERGE INTO
Function
Synchronizes data in the destination table with that in the source table based on specified conditions.
Syntax Format Supported for Lineage Parsing
MERGE INTO {schema_name}.{table_name1} USING {schema_name}.{table_name2} ON (condition) Example Statement
MERGE INTO mySchema.target t USING mySchema.source s ON (t.a = s.a) WHEN MATCHED THEN UPDATE SET t.b = t.b + 1 WHEN NOT MATCHED THEN INSERT VALUES (s.a, s.b) WHERE s.b % 2 = 0;
Parent topic: DWS Syntax
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot