Aggregate the rows in the source table that match the row in the target table by using GROUP BY functions. Use the ROW_NUMBER() OLAP expression to generate unique rows. SQLSTATE 21506
Aggregate the rows in the source table that match the row in the target table by using GROUP BY functions. Use the ROW_NUMBER() OLAP expression to generate unique rows. SQLSTATE 21506Parent topic: Error (−) SQL codes Related reference MERGE statement group-by-clause OLAP specifications...
GROUP BY 関数を使用して、ターゲット表の行と一致する、ソース表内の複数の行を集約します。 ROW_NUMBER() OLAP 式を使用して、固有の行を生成します。 SQLSTATE 21506 親トピック: エラー(-)SQLコード 関連参照 MERGE 声明 group-by-clause OLAP 指定...
説明 MERGE ステートメントの ONsearch-conditionが、複数行のソースtable-referenceを持つターゲット表の単一行に一致しました。 この結果、そのターゲット行は、更新操作または削除操作で複数回操作されることになり、 これは許可されません。