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

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

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

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

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

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

edited Jan 1, 1970
黄海军@SelectDB4918
answered Nov 8, 2024
Related Questions
批量插入数据时,一段时间就会提示get tableList write lock timeout
1 answers
3.0.3 删除指定分区的数据,s3 minio的存储量没有变化
3.0.3 FE 的RPS和QPS 统计不准
doris be启动后内存占用高
2 answers
3.0.1版本fe内存过大,并且内存一直上涨,重启后内存下降下来了,但是内存还是一点点上涨
3 answers
Doris现在是否有计划或路标支持数据透明加密?
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 中文技术论坛.