Database processing method, database processing system and storage medium
A processing method and database technology, applied in the computer field, can solve problems such as inability to parse
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] figure 1 It shows one of the schematic flowcharts of the database processing method of the embodiment of the present invention. Wherein, the database processing method includes:
[0044] Step 102, obtaining the original SQL statement of the database to be converted;
[0045] Step 104, converting the original SQL statement into a custom expression;
[0046] Step 106, analyzing the custom expression to obtain the target SQL statement of the target database.
[0047]The database processing method provided in this embodiment can obtain the target SQL statement of the target database by obtaining the original SQL statement of the database to be converted, converting the original SQL statement into a custom expression, and parsing the custom expression. Through the database processing method of the present invention, the SQL statement can be regarded as a long series of expressions for calculation, and the SQL of different databases can be translated and processed using a ...
Embodiment 2
[0049] figure 2 The second schematic flow diagram showing the database processing method of the embodiment of the present invention. Wherein, the database processing method includes:
[0050] Step 202, obtaining the original SQL statement of the database to be converted;
[0051] Step 204, replace the preset symbols in the original SQL statement according to the user-defined operator and / or the first user-defined function to obtain a user-defined expression;
[0052] Step 206, analyzing the custom expression to obtain the target SQL statement of the target database.
[0053] In this embodiment, when the original SQL statement is converted into a custom expression, the original SQL statement is preprocessed according to the custom operator and / or the first custom function, and the preset symbols in the original SQL statement are replaced for the custom operator and / or the first custom function. In the embodiment of the present invention, by customizing operators and functi...
Embodiment 3
[0055] On the basis of the second embodiment, further, the preset symbols include spaces and / or brackets.
[0056] In this embodiment, the preset symbols include, but are not limited to: spaces and / brackets. Through the embodiment of the present invention, the SQL statement can be regarded as a long series of expressions for calculation, which saves the step of syntax analysis, and is superior to the SQL conversion tool with syntax analysis in terms of compatibility. At the same time, any part of SQL can be partially translated, and any level of nesting between functions is supported.
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