发明名称 Enforcing constraints from a parent table to a child table
摘要 An apparatus, system, and storage medium that, in an embodiment, receive a constraint command that specifies a parent table, a primary key in the parent table, a child table, and a foreign key in the child table, and enforce that all values for the primary key in the parent table are present in the foreign key in the child table. In an embodiment, the enforcing may include receiving an insert command that specifies a target key, a target value for the target key, and a target table; determining whether the target table matches the parent table and whether, within a transaction that includes the insert command, the child table includes at least one row with a foreign key value that equals the target value of the primary key; inserting the target value in the target table if the determining is true; and returning an error otherwise.
申请公布号 US8010568(B2) 申请公布日期 2011.08.30
申请号 US20080220164 申请日期 2008.07.21
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 MEGERIAN MARK GREGORY
分类号 G06F7/00;G06F17/30 主分类号 G06F7/00
代理机构 代理人
主权项
地址