SQL (structured query language) statement processing method and system
A processing method and statement technology, applied in the database field, can solve the problems of non-sequential meaning and functional meaning, unable to match SQL statements in reverse, and unable to fully express the original meaning of SQL statements.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] refer to figure 1 , figure 1 It is a flow chart of the steps of the embodiment of the processing method of the SQL statement of the present invention, including the following steps: step S110, constructing the SQL syntax tree; step S120, extracting the operation type and the database object by means of lexical analysis, and each operation type and the database object form a Predicate-object pair; step S130, sort multiple predicate-object pairs according to the order of execution; step S140, based on the database operation summary, perform operations including learning user rights and merging massive SQL statements.
[0025] The above steps will be further described below.
[0026] In step S130, the execution order refers to the order in which the SQL statements are compiled and executed in the database. Refer to the following example to understand sorting.
[0027] The execution order of SELECT*FROM TABLE1 UNION SELECT * FROM TABLE2 is:
[0028] SELECT * FROM TABLE1...
Embodiment 2
[0055] refer to figure 2 , figure 2It is a flow chart of the steps of another embodiment of the processing method of the SQL statement of the present invention, including: Step S210, perform character string scanning through lexical analysis and grammatical analysis; Step S220, obtain the keyword of the database operation type, and convert the keyword As a database operation type; step S230, extract the word segment after the character string as a database object; step S240, after matching and pairing the database operation type and the database object, sort according to the execution order. Step S250, based on the database operation summary, perform operations including learning user rights and merging a large number of SQL statements. Of course, it is not limited to the above operations, and may also be other data processing performed by applying the database operation summary.
[0056] Next, an example is given to describe in detail the method for obtaining the above da...
Embodiment 3
[0060] refer to image 3 , image 3 It is a flow chart of the steps of another embodiment of the SQL statement processing method of the present invention, including: step S310, determine the source of information for extracting database SQL statement operations; step S320, analyze the SQL statement into database operation types and database objects according to the context; Step S330, after matching the database operation type with the database object, sorting according to the execution order. Step S340, based on the database operation summary, perform operations including learning user rights and merging a large number of SQL statements. Of course, it is not limited to the above operations, and may also be other data processing performed by applying the database operation summary.
[0061] The information source of the SQL statement operation here refers to three types of database logs:
[0062] 1) the database's own (file) log;
[0063] 2) SQL statements in database memo...
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