删除规则为NO ACTION时无法更新子记录

时间:2013-09-19 07:10:14

标签: sql oracle oracle-sqldeveloper database-administration

在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}更新记录时我应该收到此错误}}。我在这里错过了什么吗?

0 个答案:

没有答案