开发者

delete entity that map with another entity

开发者 https://www.devze.com 2022-12-09 20:44 出处:网络
entity A --> id, entity_a_name, foreign_key_entity_B entity B ---> id, entity_b_name when i delete entity B record, it suppose to auto deleteentity A that has foreign_key_entity_B?

entity A --> id, entity_a_name, foreign_key_entity_B entity B ---> id, entity_b_name

when i delete entity B record, it suppose to auto delete entity A that has foreign_key_entity_B ?

Error: ORA-0229开发者_C百科2: integrity constraint (schema.FKA630D2FB5F0F1180) violated - child record found


Well most Oracle databases I've seen don't auto-delete child records or anything. So you should delete all child records before you can delete you parent record.

0

精彩评论

暂无评论...
验证码 换一张
取 消