Method and system for utilizing python grammar and semantics to build complex sql sentence
The invention discloses a method and system for utilizing python grammar and semantics to build a complex sql sentence. The method comprises the steps of decomposing a complex sql query sentence to obtain subsidiary sentences of many forms, assigning the subsidiary sentences obtained through decompo...
Gespeichert in:
1. Verfasser: | |
---|---|
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 discloses a method and system for utilizing python grammar and semantics to build a complex sql sentence. The method comprises the steps of decomposing a complex sql query sentence to obtain subsidiary sentences of many forms, assigning the subsidiary sentences obtained through decomposition to a python variable, and according to the assigned python variable, connecting the subsidiary sentences obtained through the decomposition together to generate a complex sql sentence. By means of the method for utilizing the python grammar and semantics to build the complex sql sentence, basic elements, variables, functions and the like of a python language are utilized, so that when the complex query sentence is built, decomposition and composition can be achieved, the problem complexity is lowered, the code encapsulation and reuse degree is increased, and the problems of difficult writing, difficult reading, difficult debugging and difficult maintenance when the complex sql sentence is built are solved.
本 |
---|