Data query method and device, server and storage medium
A data query and data technology, applied in the computer field, can solve problems such as cumbersome, unsupported, and complicated processes, and achieve the effect of expanding usage scenarios and reducing the number of rules written
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It is a flow chart of a data query method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where SQL statements are grouped and queried. This method can be executed by the data query device provided by this embodiment. The device can use implemented in software and / or hardware. see figure 1 , the method specifically includes the following steps:
[0026] Step 110, acquiring a query statement for data query.
[0027] For data query, it is inseparable from Structured Query Language (SQL), which is a language with strong query ability. For data in relational databases (oracle, db2, sqlserver, sybase, mysql, etc.), through The standard syntax of SQL can be found out.
[0028] Optionally, the query statement may be a SELECT query item clause in the SQL language. The SELECT query item clause can extract data based on specific columns of the data table, and store the extracted results in a result set. However, for...
Embodiment 2
[0046] On the basis of the above embodiments, the steps of performing data query according to the target query statement are further refined, such as figure 2 as shown, figure 2 It is a flowchart of a data query method in Embodiment 2 of the present invention, specifically including the following steps:
[0047] Step 1302, based on the target query statement, determine the target data table for data query;
[0048] Optionally, the target query statement is parsed by a syntax analyzer to obtain a corresponding target data table.
[0049] On the basis of the above embodiments, take the target query statement: SELECT AGGR_NEW(ID), PID FROM TESTGROUP BY PID, as an example. After being analyzed by the syntax analyzer, the corresponding target data table is TEST.
[0050] Step 1304, extract the column data of the grouping object and the entry corresponding to each first parameter value from the target data table, and obtain the first data table.
[0051] Specifically, the colu...
Embodiment 3
[0083] image 3 A schematic structural diagram of a data query device provided in Embodiment 3 of the present invention, as shown in image 3 As shown, the device includes:
[0084] Query sentence obtaining module 310, used for obtaining the query sentence used for data query;
[0085] The target statement acquisition module 320 is used to convert the query statement to obtain the target query statement when the query statement does not meet the set expression rules;
[0086] The data query module 330 is configured to perform data query according to the target query statement.
[0087] In the embodiment of the present invention, the query statement used for data query is obtained; when the query statement does not meet the set expression rules, the query statement is converted to obtain the target query statement; and the data query is performed according to the target query statement. Realize automatic conversion of wrong query statements that do not conform to the rules o...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com