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

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

Asked Jul 22, 2025 Modified Jan 1, 0001
Viewed 72
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 (没回帖直接加我主页微信)10450
answered Jul 29, 2025
Related Questions
Doris CASE WHEN 嵌套 IF 查询精度丢失情况
1 answers
【严重故障】doris create table 卡住,死锁,重启fe节点才能恢复服务
1 answers
无法访问es的catalog, 感觉功能上有瑕疵
2 answers
服务于智能体的Doris湖仓架构该怎么画
1 answers
selectdb-manager-26.2.0 版本网页无法查看日志,底层有报错
1 answers
doris3.1.4查询报错The specified scan snapshotId 97906 is out of available snapshotId range [1, 1]
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 中文技术论坛.