一般错误:1 OCIStmtExecute:ORA-00001:违反唯一约束(HR.SYS_C004023)?
我可以识别错误消息,由于唯一值约束,我的表是“分支”,SYS_C004023 是从哪里来的。我检查了分支表,没有值重复。可能是什么问题。
I can identify the error message that its due to unique value constraint, my table is 'branches',and where did SYS_C004023 come. I have checked the branches table and there is no value duplication. What could be the issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个系统生成的约束名称,Oracle 在创建约束时创建该名称而没有显式命名,例如
mytable 上的主键约束将是系统生成的,因为我没有像这样显式命名它:
您可以找出这个约束在哪个表上,如下所示:
并且您可以找出它使哪些列变得唯一,如下所示:
不,不会有,由于限制。插入或更新行的尝试失败导致违反了唯一性约束。
This is a system-generated constraint name, which Oracle creates when a constraint is created without being explicitly named e.g.
The primary key constraint on mytable will be system-generated since I didn't explicitly name it like this:
You can find out what table this constraint is on like this:
And you can find out which columns it makes unique like this:
No, there won't be, thanks to the constraint. What there has been is a failed attempt to insert or update a row so that the uniqueness constraint is violatedd.