合并:未匹配的多个语句?

时间:2018-09-13 14:30:26

标签: sql sql-server

在未匹配时是否可以编写多个语句?

MERGE <target_table> [AS TARGET]
USING <table_source> [AS SOURCE]
ON <search_condition>
WHEN MATCHED THEN
<merge_matched>                      
WHEN NOT MATCHED THEN
<merge_not_matched>              -- ONE MORE INSERT STATEMENT ON OTHER TABLE
  

使用BEGINEND无效

0 个答案:

没有答案