0
我想完全覆蓋Redshift表。在Redshift中插入覆蓋表
例如,蜂巢,我可以做到以下幾點:
INSERT OVERWRITE INTO target
SELECT s.* FROM staging s LEFT JOIN target t
ON s.primaryKey = t.primaryKey AND s.distKey = t.distKey
WHERE t.primaryKey IS NULL;
我沒有得到這在紅移工作(而不是刪除並重新創建表)。
有人知道Redshift語法是覆蓋什麼嗎?
我最後一次檢查postgreql沒有INSERT的覆蓋條款 – e4c5