Method and device for generating SQL statement based on visual page, server and medium
A statement and page technology, applied in the computer field, can solve problems such as high background knowledge requirements, inability to generate SQL statements, unfriendly visualization pages, etc., to achieve the effect of optimizing interactive experience and easy generation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] Figure 1A It is a flowchart of a method for generating SQL statements based on a visual page provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of generating SQL statements, especially applicable to how to simplify the complex process of generating SQL statements, so that no database professional Users with knowledge background can also generate their own required SQL statement scenarios. In this embodiment, the visualization page is implemented based on the VUE framework, and the VUE framework is integrated with a desktop component library and a draggable component library. The method can be executed by the device for generating SQL statements based on the visualized page provided by the embodiment of the present invention. The device can be implemented in the form of hardware and / or software, and the device can be integrated in a server (the server is configured with a VUE framework system) . see Figure 1A , the method...
Embodiment 2
[0058] figure 2 It is a flowchart of a method for generating SQL statements based on a visual page provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of Embodiment 1 above. see figure 2 , the method may specifically include:
[0059] S210, acquire the target data source selected by the user, and display the attribute information of the target data source in the first preset area of the current page, wherein the attribute information includes fields in each database table in the target data source.
[0060] S220, in response to the second drag instruction, determine a second target field, and drag the second target field from the first preset area to the filter area in the second preset area.
[0061] In this embodiment, the second drag instruction is generated by the user dragging a field in the first preset area to a filter area in the second preset area. Correspondingly, the second target field is the field dragged by ...
Embodiment 3
[0077] image 3 It is a flow chart of a method for generating SQL statements based on a visual page provided by Embodiment 3 of the present invention. On the basis of the above embodiments, this embodiment further detects an SQL statement generation event, according to the first target field and The first operation configuration information of the first target field is generated and saved for explaining the SQL statement. see image 3 , the method may specifically include:
[0078] S310. Obtain the target data source selected by the user, and display the attribute information of the target data source in the first preset area of the current page, wherein the attribute information includes fields in each database table in the target data source.
[0079] S320, in response to the first drag instruction, determine a first target field, and drag the first target field from the first preset area to the output field area in the second preset area of the current page.
[0080]...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap