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

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

Asked Jul 22, 2025 Modified Jan 1, 0001
Viewed 58
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 (没回帖直接加我主页微信)10200
answered Jul 29, 2025
Related Questions
ccr数据同步成功了,但是执行get_lag的last_binlog_timestamp和first_binlog_timestamp为什么都是1970-01-01 08:00:00,我该怎么查看上次同步时间呢
1 answers
物化视图创建-使用LATERAL VIEW EXPLODE_OUTER
2 answers
使用doris物化视图做数仓分层,哪种策略好
1 answers
3.0.8版本查hive外表报错:[INTERNAL_ERROR][E6] Parameters start = 0, length = 1, are out of bound
1 answers
Doris漏洞
1 answers
DBA岗位招聘
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 中文技术论坛.