2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois