A data query method and system
A data query and query parameter technology, applied in the field of data processing, can solve problems such as low efficiency and difficult data query, and achieve the effect of convenient use and high query efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] refer to figure 1 , a flow chart of the data query method provided by Embodiment 1 of the present invention is given.
[0041] Step 101, receiving a data query request.
[0042] When the user performs data query, the query-related information can be displayed dynamically on the report running page. The user can enter the relevant information to be queried, such as which parameters to be queried, and the parameter value of the parameter to perform conditional query, and then click to query .
[0043]The report running page will generate a data query request based on the information input by the user. The data query request carries query parameters, and conditional queries can be performed through the query parameters. Then the report running page sends the data query request to the data query system, and the data query system obtains query parameters from the data query request.
[0044] Step 102, matching a preset SQL statement according to the query parameters.
[...
Embodiment 2
[0054] On the basis of the above embodiments, this embodiment further discusses the data query method in detail.
[0055] refer to figure 2 , a flow chart of the data query method provided by Embodiment 2 of the present invention is given.
[0056] Step 201, receiving a data query request, and obtaining query parameters from the query request.
[0057] In this embodiment, the above step 101 further includes step 202 and step 203 according to the query parameter matching preset SQL statement.
[0058] Step 202, obtaining at least one statement parameter from the query parameters.
[0059] Step 203, matching each of the statement parameters, and determining the SQL statement for querying the parameter name in the query parameters.
[0060] In the embodiment of the present invention, the query parameters include a parameter name, a parameter value, and a statement parameter, wherein the statement parameter is used to obtain an SQL statement for querying the parameter name and...
Embodiment 3
[0102] On the basis of the above embodiments, this embodiment also provides a data query system.
[0103] refer to Figure 4 , which shows the structure diagram of the data query system provided by the third embodiment of the present invention.
[0104] The data query system includes: a receiving module 401 , a matching module 402 , a replacement module 403 and a query module 404 .
[0105] Wherein, the receiving module 401 is used to receive a data query request, and the data query request carries a query parameter; the matching module 402 is used to match a preset SQL statement according to the query parameter; the replacement module 403 is used to adopt regular The expression replaces the SQL statement to generate an engine parameter for querying the query parameter; the query module 404 is configured to send the engine parameter to the report engine to obtain the query data result.
[0106] To sum up, match the preset SQL statement according to the query parameters in th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


