在ORACLE数据库中,我尝试更新表ENTITY_ID
中的记录TICKETS
。我收到以下错误消息:
SQL Error: ORA-00001: unique constraint (TICKET_U01) violated
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.
然而,当我检查时,我发现此表中的DELETE RULE
在约束中是NO ACTION
。记录ENTITY_ID
是引用表ENTITY
的FK。我的问题是,在这种情况下是不是NO ACTION
规则应用于父记录,我的意思是当我尝试从表ENTITY
而不是表{{1}更新记录时我应该收到此错误}}。我在这里错过了什么吗?