2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa