How to delete all child records when parent record is deleted?
如何删除所有子记录的父记录被删除时?
The bottom section (which contains the Parent record id field) was added in this version, as shown in Figure 2.
底部的区域(包含父记录id字段)是在这个版本重增加的,如图 2 所示。
As soon as you load a child record the constraint checks for the related parent record and raises an error.
在加载子记录后,约束会立即检查相关父记录并引发错误。
A common workflow Project record could act as a container or parent record to all Issues for a given product release.
通用工作流项目记录可以作为已知产品版本所有问题的容器或父记录。
Provide a link between two tables so that you can find related child records for a particular parent record and vice versa.
提供两个表之间的链接,以便可以为特定的父记录找到相关的子记录,反之亦然。
Specifies if the record pointer remains on the same parent record until the record pointer of the child table moves through all related records.
指定是否只有在子表的记录指针遍历了所有相关记录之后,才移动父记录的记录指针。
By saying nothing more than acts_as_tree in your ActiveRecord model, you can dynamically add methods to manage the tree, such as methods that retrieve the parent record or child record.
通过使用ActiveRecord模型中的acts_as _ tree,可以动态地添加方法来管理树,比如检索父记录或子记录的方法。
Because there are multiple relationships between the parent customer record and all of its child nodes, all of the pages for the customer-related objects start with a list.
因为在父客户记录和其所有的子节点之间存在着多样的关系,所有客户相关对象的所有页面都开始于一个列表。
A delete operation could remove a record from a parent table, leaving records in an associated child table that no longer have a matching record in the parent table.
一个删除操作可以从一个父表中删除一条记录,使得相关子表中的记录在父表中没有与之匹配的记录。
An update operation could change a record in a parent table, leaving records in an associated child table that no longer have a matching record in the parent table.
一个更新操作可改变父表中的一条记录,使得相关子表中的记录在父表中没有与之匹配的记录。
An update operation could change a record in a child table such that it no longer has a matching record in the associated parent table.
一个更新操作可改变子表中的一条记录,这样相关父表中不再有一条匹配的记录。
When ON delete set NULL is active, when a record is deleted from the parent table, all records in the child table with matching foreign key values are set to NULL.
当ON DELETESETNULL规则被激活时,如果一条记录从父表中删除,子表中的所有记录以及匹配的外键值都被设置为NULL。
ON DELETE CASCADE—When a record is deleted from the parent table, all records in the child table with matching foreign key values are also deleted.
ON DELETECASCADE —当一条记录从父表中删除时,子表中的所有记录以及匹配的外键值都全部被删除。
When an ON delete CASCADE rule is active, all records in the child table with matching foreign key values are deleted when a record is deleted from the parent table.
当ONDELETECASCADE规则被激活时,当一条记录从父表中删除时,子表中的所有记录以及匹配的外键值都被删除。
The only thing this changes is the relationship to the parent of the test case record.
唯一改变的事情就是测试用例记录的双亲的关系。
In this scenario, Websphere Record List of the parent Datatable is being used by the nested components.
在该场景中,嵌套组件使用了父数据表中的Websphere记录列表。
Each reference field used by one of the ClearQuest ALM record types has to be implemented as an individual synchronization rule that will be invoked by the parent sync rule.
一个ClearQuestALM记录类型所使用的每一个引用字段都需要作为一条同步化规则实施,上一级同步化规则涉及到了这个规则。
If the process should happen to occur again at a lower level (a narrower scope), the 'parent' module record that will be passed in will be the one created. here.
如果这个过程偶然在下级(小的范围)中再次发生,“父”模块记录将会被创建并传递。
Quadtree manipulation in Erlang - Will editing a quadtree record invalidate the parent?
四叉树操作二郎将编辑一个四叉树记录无效的父母吗?
On August 13,1983, 93,000 people helped set a one-day attendence record that easily eclipsed the old records established at the two parent U.
1983年8月13日,93000人帮助创建了为期一天的出席记录,该记录很容易 的超越了母国-美国两个迪士尼乐园的记录。
Dan, and Tuantuan regained some confidence. After the recital, Tuantuan was asked by a parent to play "Big Red Dates for Loved Ones" again so that she could record it and show her child later.
下来后还有一位家长将团团请到一间琴房去让她再弹一遍“大红枣儿送亲人”并把她的指法用摄象机录下来回去给孩子看,这就让团团有点飘飘然了。
Dan, and Tuantuan regained some confidence. After the recital, Tuantuan was asked by a parent to play "Big Red Dates for Loved Ones" again so that she could record it and show her child later.
下来后还有一位家长将团团请到一间琴房去让她再弹一遍“大红枣儿送亲人”并把她的指法用摄象机录下来回去给孩子看,这就让团团有点飘飘然了。
应用推荐