Method and device for determining data table association relationship

A data table association and association relationship technology, applied in the computer field, can solve the problems of foreign key constraints, difficult maintenance of database table structure, cumbersome operation, etc., to improve application flexibility, maintain data consistency and integrity, and simplify changes The effect of the operation

Pending Publication Date: 2020-06-19
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: due to the use of the data table association relationship determined by the primary key and the foreign key, when the data table is changed, it will be constrained by the foreign key
This makes the data table change operation must follow the foreign key constraints, the operation is quite cumbersome, and the foreign key determines the data generation relationship between the two data tables, which limits the applic

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for determining data table association relationship
  • Method and device for determining data table association relationship
  • Method and device for determining data table association relationship

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and should be regarded as merely exemplary. Therefore, those of ordinary skill in the art should realize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Likewise, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0053] The embodiment of the present invention provides a method for determining the association relationship of data tables, and the method is applied to the determination of the association relationship of data tables based on the association field setting rule of the associated data table proposed by the present invention. Such as figure 1 As shown, the method for d...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and device for determining a data table association relationship, and relates to the technical field of computers. One specific embodiment of the method comprises thefollowing steps: S1, querying an associated field in a to-be-determined data table by utilizing an associated identifier, the associated field comprising a table name of the data table where an associated field associated with the associated field is located and the associated identifier, the associated field being a unique index of the data table where the associated field is located, and the associated field being an index of the to-be-determined data table; and S2, analyzing the associated fields, and obtaining the table names of the data tables where the associated fields corresponding tothe associated fields are located, so as to determine that the data tables are associated tables about the associated fields of the to-be-determined data tables. According to the embodiment, the change operation of the associated data table can be simplified, the application flexibility of the associated data table is improved, and meanwhile, the data consistency and integrity of the associated data table can be kept.

Description

Technical field [0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining the association relationship of data tables. Background technique [0002] In Internet business, when we set the association relationship of data tables, we usually determine the master table and slave table in the data table association relationship by setting the primary key and foreign key of the related data table, so that different data tables are related Joint. The primary key in the main table is used to associate with other tables and serves as a unique identifier in the main table. The secondary table uses the primary key of the primary table as a foreign key, and can be associated with the primary table through the foreign key. [0003] In the process of implementing the present invention, the inventor found that the prior art has at least the following problem: due to the use of the primary key and the foreign key to determi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/22G06F16/23
Inventor 曾文杰
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products