Apache Doris 中文技术论坛
Questions Tags Users Badges

doris 3.0.6版本,明细模型表 ,delete数据,如何支持关联其他表做删除数据

Asked Jul 22, 2025 Modified Jan 1, 0001
Viewed 29
3.0 delete

如题,下面sql报错
DELETE FROM internal.ods_db.table1
where emp_no in (
select emp_no
from internal.stg_db.table2
where date_dt = '20250721'
)

报错:SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = Where clause only supports compound predicate, binary predicate, is_null predicate or in predicate.

edited Jan 1, 0001
wcj1
asked Jul 22, 2025
1 Answers

目前不支持这种嵌套子查询的方式进行 delete

edited Jan 1, 1970
阿渊@SelectDB (没回帖直接加我主页微信)9350
answered Jul 29, 2025
Related Questions
doris2.1.5升级到doris3.0.8,升级后开启ranger,root执行SHOW PROC '/backends' 报没有admin权限
routine load只支持部分列更新,不支持灵活列更新,什么时候能支持?
1 answers
为什么采用AGGREGATE KEY引擎的REPLACE_IF_NOT_NULL,最后的查询巨慢?
1 answers
Spark Doris Connector 写入 doris 云服务器内网不可达
1 answers
存算分离创建 STORAGE VAULT 问题,hdfs高可用下dfs.client.failover.proxy.provider.mycluster配置问题
1 answers
the report queue size exceeds the limit: xxx
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.