doris INSERT overwrite table

泡椒炒甜瓜 / 2024-10-10 / 原文

2.0版本之后才支持 INSERT overwrite table

INSERT overwrite table t_bill
select * from ts_bill;

 

2.0.2版本

使用with as insert overwrite table 时会报错,应采用

INSERT OVERWRITE TABLE ads.ads_sub
WITH LABEL 20241010161820label with t1 as

label不能重复,可以用时间戳动态生成。

也可以执行完sql清理label

CLEAN LABEL 20241010161820label FROM ads;

 

参考连接:https://doris.apache.org/zh-CN/docs/sql-manual/sql-statements/Data-Manipulation-Statements/Load/CLEAN-LABEL/