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

主键表遇到主键冲突怎么设置不更新表数据直接报错呢??

Asked Nov 8, 2024 Modified Jan 1, 0001
Viewed 48
3.0

设置主键模型后,insert into 插入重复数据,直接更新为最新数据;我想让数据库遇到重复数据直接报错不插入数据

edited Jan 1, 0001
xiaoli1
asked Nov 8, 2024
1 Answers

目前不支持,主键模型默认是upsert 语义,建议在数据源对数据进行去重清理后再导入。

edited Jan 1, 1970
黄海军@SelectDB5188
answered Nov 8, 2024
Related Questions
selectdb3.0.9版本be崩溃
Doris 3.0 版本Json 类型查询问题
1 answers
3.0.8版本,我用了variant类型,然后插入'null', 结果每次查询返回的结果不一样
Doris 3.1 写入监控
catalog如何配置转义字符是否当为普通字符串呢
1 answers
doris3.0.8存算一体,开启kafka routine_load后be内存居高不下。
1 answers

Terms of service Privacy policy

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