×

Methods for improved referential integrity in a relational database management system

  • US 5,499,359 A
  • Filed: 01/18/1994
  • Issued: 03/12/1996
  • Est. Priority Date: 01/18/1994
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system, a method for maintaining referential integrity among a plurality of data tables stored in a relational database system, the method comprising:

  • (a) receiving from a user a request specifying a desired referential integrity link between two data tables, said request designating a master table having at least one field whose values are to serve as a reference, said at least one field serving as a primary key for said master table, and said request designating a detail table having at least one field whose values are required to match reference values in the master table, said at least one field of the detail table serving as a foreign key linking said detail table to the primary key of said master table;

    (b) associating with said detail table a foreign key descriptor, said foreign key descriptor storing information specifying which index of the detail table supports said foreign key, which table is said master table for the referential integrity link, and which fields of the detail table contribute to said foreign key, said foreign key descriptor being stored together with said detail table so that a transfer of said detail table to a remote location includes transfer of said foreign key descriptor;

    (c) associating with said master table an embedded key descriptor, said embedded key descriptor storing information specifying which fields of said master table contribute to said primary key and further specifying said detail table for the referential integrity link, said embedded key descriptor being stored together with said master table so that a transfer of said master table to a remote location includes transfer of said embedded key descriptor; and

    (d) storing with said embedded key descriptor a detail table descriptor, said detail table descriptor storing information specifying said detail table, which index supports said foreign key, and which at least one field of said detail table contributes to said foreign key.

View all claims
  • 8 Assignments
Timeline View
Assignment View
    ×
    ×