0

在 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是引用到表的 FK ENTITY。我的问题是,NO ACTION在这种情况下,规则不适用于父记录,我的意思是当我尝试从 tableENTITY而不是 table更新记录时应该得到这个错误TICKETS。我在这里错过了什么吗?

4

0 回答 0