Relational algebra-based blood relationship generation method
The invention provides a relational algebra-based blood relationship generation method. The method comprises the following steps of S1, analyzing an input SQL (Structured Query Language) into an abstract syntax tree; s2, constructing corresponding nodes for fields and constants of the abstract synta...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a relational algebra-based blood relationship generation method. The method comprises the following steps of S1, analyzing an input SQL (Structured Query Language) into an abstract syntax tree; s2, constructing corresponding nodes for fields and constants of the abstract syntax tree, and creating a temporary table to store the nodes; s3, performing classified storage according to field attributes of the nodes; and S4, constructing a relationship for the two groups of attribute nodes meeting the relationship definition. The method has the beneficial effects that compared with traditional blood relationship generation, the blood relationship generation starts from the relationship algebra, deconstructs each element in sql, realizes abundant relationship types by analyzing the theoretical relationship among the elements, can realize the analysis of the customized relationship types, is flexible to use, and has a good application prospect. And the user can be helped to find various relation |
---|