2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hi,
Currently Redshift MERGE statements do not allow for the source table to be a view, subquery, or CTE (created by a WITH statement). If you need to perform some filtering on the source table before applying the MERGE you will need to create a permanent or temporary table to be used as the source.
Alternatively you can use UPDATE and INSERT statements.
-1
I would just use a WITH clause before the merge to filter the source table before the merge.
관련 콘텐츠
- AWS 공식업데이트됨 2년 전