Query optimization method based on MySOL database
A query optimization and database technology, applied in the field of network databases, can solve the problems of different capitalization, limiting MySQL query reuse technology, and low query reuse, and achieve the effect of improving utilization and eliminating low query reuse.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0021] like figure 1 As shown, a query optimization method based on MySQL database includes the following steps:
[0022] S1. Obtain an SQL query statement with invalid characters and / or capital letters;
[0023] S2. Calculate the hash value of each word in the SQL query statement;
[0024] S3, establish an array, store the hash value of the word and the first three characters of the word in the array, and use the hash value of the word as the subscript value of the array, so that the hash value matches the subscript of the array;
[0025] S4, loop through the words in the SQL query statement;
[0026] S5, if there is a word with an invalid character in the SQL query statement, determine that the word is a non-keyword, delete the invalid character in the non-keyword, and go to step S4;
[0027] S6, if there is a word, and the first 3 characte...
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