Functional SQL query method and device supporting dynamic variables, equipment and medium
A technology of dynamic variables and query methods, applied in the computer field, can solve problems such as poor flexibility, inability to support dynamic variable functions, and difficult expansion, etc., to achieve the effect of improving flexibility and convenience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] Such as Figure 1 to Figure 6 As shown, the present embodiment provides a functional SQL query method supporting dynamic variables, comprising the following steps:
[0051] S1, passing the formula of the functional SQL containing dynamic variables to the script parameter extractor, extracting the parameter head flag, the parameter body flag and the parameter body content from the formula by the script parameter extractor and passing it to the script parameter parser, wherein The dynamic variable of exists in the parameter body content;
[0052] Specific as figure 2 As shown, in the new style of SQL, three parameter head signs are defined as '$', '@', '#' and two parameter body signs are '[]', '{}', dynamic variables use ' ! {variable name}' form. The script parameter extractor will read and collect the header flag and body flag in the new-style SQL according to the flag, and then pass the collected header flag and body flag content to the script parameter parser fo...
Embodiment 2
[0080] Such as Image 6 As shown, a kind of functional SQL query device that supports dynamic variables is provided in the present embodiment, comprising:
[0081] The script parameter extractor is used to pass the formula of functional SQL containing dynamic variables to the script parameter extractor, and the parameter header flag, parameter body flag and parameter body content are extracted from the formula by the script parameter extractor and passed to the script parameter parser, where dynamic variables exist in parameter body content;
[0082] The script parameter parser is used for receiving the content sent by the script parameter extractor, parsing the parameter body mark, parsing the type of the parameter header mark and performing the following classification processing on the dynamic variable:
[0083] When the type of the parameter header flag is analyzed to be a single-parameter value type, the parameter body content is obtained, and the dynamic variable value ...
Embodiment 3
[0099] This embodiment provides an electronic device, such as Figure 7 As shown, it includes a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be realized.
[0100] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method described in Embodiment 1 of this application, those skilled in the art can understand the electronic device of this embodiment. Specific implementation methods and various variations thereof, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as those skilled in the art implement the equipment adopted by the method in the embodiment of the application, they all belong to the intended protection scope of the application.
[010...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - 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



