Method and system for realizing SQL query condition based on tree structure

A query condition and tree structure technology, applied in the field of database query, can solve problems such as low work efficiency, inability to realize complete autonomy of users, inability to operate conveniently, etc., and achieve the effect of improving work quality and work efficiency

Inactive Publication Date: 2017-07-04
AEROSPACE INFORMATION
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, in order to use the SQL query statement in the corresponding database, the fixed conditions are written in the system, and the operators who are familiar with the database technology are specially responsible for modification and other management. When using it, the user can only call the written SQL statements that are dead in the system, but you cannot edit SQL statements according to your own needs
In this way, general business personnel cannot easily modify the query conditions according to their own needs, and modifying or generating a statement also requires a complicated process, resulting in low work efficiency
Although some systems currently provide the function of text input query statements, and the query conditions can be modified in the text state, these operations have high requirements for business personnel, and at the same time require technicians who write SQL codes to store a large amount of pointable text in the syste

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 system for realizing SQL query condition based on tree structure
  • Method and system for realizing SQL query condition based on tree structure

Examples

Experimental program
Comparison scheme
Effect test

Example

[0035] The first embodiment

[0036] The method for implementing SQL query conditions based on a tree structure in this embodiment includes the following steps:

[0037] Step S1, a tree structure of data elements is established in the database. In this step, the tree structure of the data element is introduced from the beginning of the establishment and selection of the data element, and an intuitive interface of the tree structure is established, which is convenient for users who do not have basic knowledge of the database structure and can realize completely autonomous use of the database.

[0038] Step S2: Read the tree structure of the data element from the database, display the data element through an asynchronous tree method, and select the corresponding data element according to the preset query conditions.

[0039] In this step, the data elements are displayed in the manner of an asynchronous tree. Specifically, the hierarchical structure of the data elements can be displayed,...

Example

[0062] Second embodiment

[0063] Attached below figure 2 In the second embodiment, the system for implementing SQL query conditions based on the tree structure of this embodiment will be described in detail.

[0064] figure 2 It is a schematic diagram of a system structure for implementing SQL query conditions based on a tree structure in the second embodiment of the present invention.

[0065] Such as figure 2 As shown, the system for implementing SQL query conditions based on a tree structure of this embodiment includes: a tree structure establishment unit 21; a data element selection unit 22; a condition tree customization unit 23; an implementation unit 24;

[0066] The tree structure establishing unit 21 is used to establish a tree structure of data elements in the database;

[0067] The data element selection unit 22 is connected to the database, and is used to read the tree structure of the data element from the database, display the data element through an asynchronous tr...

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 a system for realizing an SQL query condition based on a tree structure. The method for realizing the SQL query condition comprises the steps of obtaining a hierarchical structure of data elements from a database on the premise of providing data element selection in a tree structure manner, and displaying and checking the data elements through an asynchronous condition tree method; and adding the checked data elements to a candidate list in a custom query condition, and generating a query condition in a custom condition tree structure. The custom condition tree structure performs statistics on all indexes in a scheme during scheme establishment, and determines that the definition of the SQL query condition can be finished through operations of dragging, extraction and the like in the scheme, so that the data elements are intuitively provided; condition editing and combination are performed, so that the SQL query condition is directly realized; and a user can completely autonomously perform SQL query condition editing according to own needs on the premise of not having database structure knowledge, so that the working equality and the working efficiency are improved.

Description

Technical field [0001] The invention belongs to the technical field of database query, and specifically relates to a method and system for realizing SQL query conditions based on a tree structure. Background technique [0002] With the rapid development of computer technology, business systems in various industries tend to be improved, and a large amount of business data has been accumulated to form a database with a certain scale. Such as tax system database. The standard data query language in the database, usually structured query language (Structured Query Language, SQL), is used to control and use the database through various SQL commands. [0003] For tax databases, tax bureau staff often need to edit SQL conditional statements to query taxpayers and their corresponding risks in the database. For personnel with a certain computer database foundation, editing a correct SQL statement requires a certain amount of thinking process; for front-line operators who are only familiar...

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): G06F17/30
CPCG06F16/242G06F16/2425
Inventor 黄嵘宋志新李瑞明潘竞旭谢宇
Owner AEROSPACE INFORMATION
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