System and method for constructing complex sql statement by utilizing python grammatical semantics

A grammatical semantics and complex technology, applied in the field of constructing complex SQL statements using python grammatical semantics, can solve problems such as difficult identification, difficult maintenance, and increased maintenance costs.

Inactive Publication Date: 2021-01-19
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a system and method for constructing complex sql statements using python syntax and semantics, in order to solve the technical problems in the background technology, mainly aimed at complex queries of relational databases under the many-to-many model The problem of difficult identification and maintenance of query statements is dealt with. The defect of the problem is mainly due to the limitation of the language of the structured query language itself. Increased maintenance costs

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
  • System and method for constructing complex sql statement by utilizing python grammatical semantics
  • System and method for constructing complex sql statement by utilizing python grammatical semantics

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0019] See figure 2 , figure 2 It is a schematic structural diagram of a system for constructing complex SQL statements using python syntax and semantics in the present invention. A system for constructing complex SQL statements using python syntax and semantics includes: a decomposition unit 201 , an assignment unit 202 , and a series unit 203 .

[0020] The decomposing unit 201 is configured to decompose complex sql query statements to obtain clauses in various forms.

[0021] Wherein, the decomposing unit 201 is used to decompose the complex sql query statement to obtain various forms of clauses, including:

[0022] The decomposing unit 201 is used to decompose the complex sql query statement by expressing the query structure through python syntax, and decompose to obtain clauses in various forms.

[0023] Wherein, the decomposing unit 201 is used to decompose the complex sql query statement by expressing the query structure through python syntax, and decompose to obtai...

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 system for constructing a complex sql statement by utilizing python syntax semantics, and belongs to the technical field of script programming and structured query language.The system comprises a decomposition unit, an assignment unit and a series unit. The decomposition unit is used for decomposing the complex sql query statement to obtain clauses in various forms; theassignment unit is used for assigning the clauses in various forms obtained by decomposition to a python variable; and the serial connection unit is used for serially connecting and combining the clauses in various forms obtained by decomposition together according to the assigned python variable to generate a complex sql statement. According to the system for constructing the complex sql statement by utilizing the python syntax semantics, the flexibility of logic processing of a programming language is utilized, the original complex logic is split and processed, the complex problem is simplified, and compared with the prior art, the readability of a program is improved, the later expandability is also improved, and the maintenance cost is reduced.

Description

technical field [0001] The invention relates to the technical fields of script programming and structured query language, and more specifically relates to a system and method for constructing complex SQL statements by using python syntax and semantics. Background technique [0002] At present, the parsing for sql usually focuses on the splicing of sql statements directly. This method will lead to the complexity and redundancy of sql statements when dealing with complex relational queries, which is not conducive to later maintenance. Contents of the invention [0003] The purpose of the present invention is to provide a system and method for constructing complex sql statements using python syntax and semantics, in order to solve the technical problems in the background technology, mainly aimed at complex queries of relational databases under the many-to-many model The problem of difficult identification and maintenance of query statements is dealt with. The defect of the pr...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/242G06F8/36
CPCG06F16/2433G06F8/36
Inventor 张玉平
Owner SICHUAN CHANGHONG ELECTRIC 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