SQL statement optimization method based on constant substitution
An optimization method and constant technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as reducing multi-table connections and eliminating correlation, and achieve the effect of eliminating correlation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0043] The present invention will be further described below in conjunction with specific examples.
[0044] see figure 1 , a kind of SQL statement optimization method based on constant replacement of the present invention, comprises steps:
[0045] S1: Create a replacement linked list according to the Boolean expression in the WHERE clause in the target SQL statement;
[0046] S2: Traverse the replacement linked list, search for a driving expression, the driving expression is an equivalent expression, one side of the equivalent condition is a column, and the other side is a constant; if the driving expression is found, continue to the next step, otherwise end the step ;
[0047] S3: Perform constant replacement on the target SQL statement according to the current driving expression, adjust the replacement linked list and mark the current driving expression;
[0048] S4: Continue to search for the next driving expression, if the driving expression is found, return to step S...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com