Data query method, device, computer device and storage medium
By adding multiple query windows to the user interface and supporting the processing and export of multiple SQL query requests, the problem of single SQL query limitation in the existing technology is solved, and efficient management and operation of complex data queries are achieved.
Patent Information
- Application Number
- CN201910190297.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-03-13
AI Technical Summary
Existing SQL queries only support the execution and export of a single SQL script, which cannot meet the increasingly complex data query needs, especially in multiple database query scenarios.
By generating a user interface, multiple query windows are provided to receive and process multiple SQL query requests, obtain data from different databases, and support the display and export of query data.
It implements support for multiple SQL query windows and independent export of query results, improving user convenience and data management efficiency.
Smart Images

Figure CN110109941B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data query method, device, computer device and storage medium. Background Art
[0002] Currently, databases are widely used in all walks of life. On the one hand, databases can store a large amount of information. On the other hand, using databases is convenient for managing and controlling information. Since the various types of data stored in databases are numerous and complex, the concept of simple and convenient database query will also be valued by more and more people. At present, the industry's SQL query only supports the execution and export of a single SQL script, which cannot meet the increasingly complex data query needs. Summary of the invention
[0003] In view of the above, it is necessary to propose a data query method, device, computer device and storage medium to solve the technical problem of not supporting multiple SQL script queries.
[0004] A first aspect of the present invention provides a data query method, the method comprising:
[0005] Generate a user interface, and display the user interface on a display screen of a computer device, wherein the user interface includes a first query window, and the first query window is used to receive a first SQL query request input by a user;
[0006] When the first input signal is received, a second query window is added to the user interface, where the second query window is used to receive a second SQL query request input by the user;
[0007] When a second input signal is received, obtaining corresponding first query data from a specified first database according to the first SQL query request, and obtaining corresponding second query data from a specified second database according to the second SQL query request;
[0008] Displaying the acquired first query data and second query data on the user interface; and
[0009] When a third input signal is received, the first query data and the second query data are derived.
[0010] Preferably, the first query window and the second query window are text input boxes with specified shapes and sizes respectively.
[0011] Preferably, the first query window is located at a first position of the user interface, and the second query window is located at a second position of the user interface, wherein the second position is different from the first position and does not overlap with the first position.
[0012] Preferably, the first query window and the second query window are floating windows respectively, and the method further includes:
[0013] When a signal generated by a drag operation is received, moving the first query window from the first position to another position of the user interface; and
[0014] When a signal generated by the drag operation is received, the second query window is moved from the second position to another position of the user interface.
[0015] Preferably, the method further comprises: deleting one or more of the second query windows according to an input operation of the user, comprising:
[0016] When each second query window is added to the user interface, a corresponding added time is recorded for each second query window, wherein the added time is the current system time of the computer device; and
[0017] When a signal generated by the user clicking / pressing / touching a preset delete button is received, the first added or the latest added second query window is deleted according to the added time corresponding to each second query window.
[0018] Preferably, displaying the acquired first query data and second query data on the user interface includes:
[0019] The first query data is displayed at a third position of the user interface, and the second query data is displayed at a fourth position of the user interface.
[0020] The third position is located below the first query window, and the fourth position is located below the second query window.
[0021] Preferably, the exporting the first query data and the second query data comprises:
[0022] Import the first query data and the second query data into a CSV or Excel table.
[0023] A second aspect of the present invention provides a computer device, which includes a processor and a memory, wherein the memory is used to store at least one instruction, and the processor is used to execute the at least one instruction to implement the data query method.
[0024] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and the at least one instruction implements the data query method when executed by a processor.
[0025] A fourth aspect of the present invention provides a data query device, the device comprising:
[0026] A generating module, used for generating a user interface, and displaying the user interface on a display screen of a computer device, wherein the user interface includes a first query window, and the first query window is used for receiving a first SQL query request input by a user;
[0027] An execution module, configured to add a second query window to the user interface when receiving a first input signal, wherein the second query window is configured to receive a second SQL query request input by a user;
[0028] The execution module is further configured to, when receiving a second input signal, obtain corresponding first query data from a specified first database according to the first SQL query request, and obtain corresponding second query data from a specified second database according to the second SQL query request;
[0029] The execution module is further configured to display the acquired first query data and the acquired second query data on the user interface; and
[0030] The execution module is further configured to derive the first query data and the second query data when a third input signal is received.
[0031] The data query method and device, computer device and storage medium described in the embodiments of the present invention generate a user interface and display the user interface on a display screen of the computer device, wherein the user interface includes a first query window, the first query window is used to receive a first SQL query request input by a user; when a first input signal is received, a second query window is added to the user interface, the second query window is used to receive a second SQL query request input by the user; when a second input signal is received, the corresponding first query data is obtained from a specified first database according to the first SQL query request, and the corresponding second query data is obtained from a specified second database according to the second SQL query request; the obtained first query data and second query data are displayed on the user interface; and when a third input signal is received, the first query data and the second query data are exported, so that after improvement, the SQL query page supports multiple query windows and supports the separate export of query results, which is convenient for user operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0033] Figure 1 It is a flow chart of a data query method provided in Embodiment 1 of the present invention.
[0034] Figure 2 It is a structural diagram of a data query device provided in Embodiment 2 of the present invention.
[0035] Figure 3 It is a schematic diagram of a computer device provided in Embodiment 3 of the present invention.
[0036] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0037] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. The embodiments described are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0040] Embodiment 1
[0041] Figure 1 It is a flow chart of a data query method provided in Embodiment 1 of the present invention.
[0042] In this embodiment, the data query method can be applied to a computer device. For a computer device that needs to perform data query, the function for data query provided by the method of the present invention can be directly integrated on the computer device, or run on the computer device in the form of a software development kit (SDK).
[0043] like Figure 1 As shown, the data query method specifically includes the following steps. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0044] Step S1: A computer device generates a user interface and displays the user interface on a display screen of the computer device, wherein the user interface includes a first query window, and the first query window is used to receive a first SQL query request input by a user.
[0045] In this embodiment, the computer device may be a personal computer, a server or other equipment.
[0046] In one embodiment, the user interface is a WEB page.
[0047] In one embodiment, the first query window is a text input box with a specified shape and size, located at a first position of the user interface. The first position can be any position on the user interface that is convenient for the user to input the first SQL query request, preferably a central position of the user interface.
[0048] Step S2: When the computer device receives the first input signal, a second query window is added to the user interface, where the second query window is used to receive a second SQL query request input by the user.
[0049] In one embodiment, the second SQL query request may be the same as or different from the first SQL query request.
[0050] In one embodiment, the first input signal may refer to a signal generated by a user clicking / pressing / touching a preset first button. In one embodiment, the first button may be a virtual button pre-displayed in the user interface or a physical key of the computer device. In other embodiments, the first input signal may also refer to a signal generated by simultaneously pressing two or more different physical keys of the computer device.
[0051] In a first embodiment, the second query window may be a text input box having the same shape and size as the first query window. In other embodiments, the second query window may have a different shape and size than the first query window.
[0052] In the first embodiment, the second query window is also displayed at the first position, covering the first query window. At this time, the user's input at the first position is used as the second SQL query request.
[0053] In a second embodiment, the second query window may be located at a second position of the user interface, where the second position is different from the first position and does not overlap with the first position.
[0054] In one embodiment, the first query window is a floating window. When the computer device receives a signal generated by a drag operation, the computer device may change the position of the first query window on the user interface, that is, move the first query window from the first position to another position on the user interface. In one embodiment, the second query window may also be a floating window. When the computer device receives a signal generated by a drag operation, the computer device changes the position of the second query window on the user interface, that is, moves the second query window from the first position or the second position to another position on the user interface.
[0055] In one embodiment, step S2 is repeatedly executed, and the computer device can add a plurality of the second query windows.
[0056] In one embodiment, the computer device may also delete one or more of the second query windows according to the user's input operation.
[0057] In the first embodiment, deleting one or more of the second query windows according to the user's input operation includes:
[0058] (a1) When each second query window is added to the user interface, a corresponding time (referred to as "added time" for convenience of description) is recorded for each second query window. The added time may be the current system time of the computer device.
[0059] (a2) When a signal generated by a user clicking / pressing / touching a preset delete button is received, the latest added second query window is deleted according to the added time corresponding to each second query window; or the earliest added second query window is deleted.
[0060] Therefore, each time the preset delete button is clicked / pressed / touched, the computer device deletes the earliest or latest added second query window among all the current second query windows.
[0061] In one embodiment, the latest addition can be defined as the latest addition time. For example, assume that the user interface currently includes three second query windows, namely query windows "B1", "B2", and "B3". Among them, the addition time corresponding to query window "B1" is the earliest (for example, 2018-07-02 09:05am), the addition time corresponding to query window "B3" is the latest (for example, 2018-07-02 09:10am), and the addition time corresponding to query window "B2" (for example, 2018-07-02 09:06am) is between the query windows "B1" and "B3". Then, when the user clicks / presses / touches the preset delete button for the first time, window "B3" is deleted. When the user clicks / presses / touches the preset delete button again, window "B2" is deleted. When the user clicks / presses / touches the preset delete button again, window "B1" is deleted. Of course, in other embodiments, when the user clicks / presses / touches the preset delete button, the second query window added earliest can be deleted. Thus, each time the preset delete button is clicked / pressed / touched, the second query window added earliest among all the current second query windows can be deleted. In one embodiment, the earliest addition can be defined as the earliest addition time.
[0062] In the second embodiment, deleting one or more of the second query windows according to the user's input operation includes:
[0063] (b1) When each second query window is added to the user interface, record the corresponding added time for each second query window. The added time may be the current system time of the computer device.
[0064] (b2) When a designated signal (eg, a double-click signal) is received from a second query window among the one or more second query windows, the second query window is deleted.
[0065] In a third implementation, deleting one or more of the second query windows according to an input operation of the user includes:
[0066] (c1) When each second query window is added to the user interface, record the corresponding added time for each second query window. The added time may be the current system time of the computer device.
[0067] (c2) When a specified signal (e.g., a double-click signal) is received from one of the one or more second query windows, and a signal generated by a user clicking / pressing / touching a preset button is also received, the second query window is deleted.
[0068] Step S3: When the computer device receives the second input signal, the computer device obtains corresponding first query data from the specified first database according to the first SQL query request, and obtains corresponding second query data from the specified second database according to the second SQL query request.
[0069] In one embodiment, the second input signal may be a signal generated by a user clicking / pressing / touching a preset second button. In one embodiment, the second button may be a virtual button pre-displayed in the user interface or a physical key of the computer device. In other embodiments, the second input signal may also be a signal generated by simultaneously pressing two or more different physical keys of the computer device.
[0070] In one embodiment, the first database and the second database may be the same database or different databases.
[0071] Step S4: The computer device displays the acquired first query data and the acquired second query data on the user interface.
[0072] In one embodiment, displaying the acquired first query data and second query data on the user interface includes:
[0073] The first query data is displayed at a third position of the user interface, and the second query data is displayed at a fourth position of the user interface.
[0074] In one embodiment, the third position is located at the periphery of the first query window, preferably at the lower position of the first query window. The fourth position is located at the periphery of the second query window, preferably at the lower position of the second query window.
[0075] Step S5: When the computer device receives the third input signal, the first query data and the second query data are derived.
[0076] In one embodiment, the third input signal may refer to a signal generated by a user clicking / pressing / touching a preset third button. In one embodiment, the third button may be a virtual button pre-displayed on the user interface or a physical key of the computer device. In other embodiments, the third input signal may also refer to a signal generated by simultaneously pressing two or more different physical keys of the computer device.
[0077] In one embodiment, the exporting the first query data and the second query data includes:
[0078] Import the first query data and the second query data into a CSV or Excel table, that is, output the first query data and the second query data as a CSV file or an Excel file.
[0079] Preferably, the first query data and the second query data are imported into different worksheets of the same CSV file or Excel file.
[0080] For example, the first query data is imported into sheet 1 of an Excel file, and the second query data is imported into sheet 2 of the Excel file.
[0081] In summary, the data query method described in the embodiment of the present invention generates a user interface and displays the user interface on a display screen of a computer device, wherein the user interface includes a first query window, the first query window is used to receive a first SQL query request input by a user; when a first input signal is received, a second query window is added to the user interface, the second query window is used to receive a second SQL query request input by the user; when a second input signal is received, the corresponding first query data is obtained from a specified first database according to the first SQL query request, and the corresponding second query data is obtained from a specified second database according to the second SQL query request; the obtained first query data and second query data are displayed on the user interface; and when a third input signal is received, the first query data and the second query data are exported, so that after improvement, the SQL query page supports multiple query windows and supports the separate export of query results, which is convenient for user operation.
[0082] Above Figure 1 The data query method of the present invention is described in detail. Figure 2 and Figure 3 , the functional modules of the software device for implementing the data query method and the hardware device architecture for implementing the data query method are introduced.
[0083] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0084] Embodiment 2
[0085] See also Figure 2 , which is a structural diagram of a data query device provided in Embodiment 2 of the present invention.
[0086] In some embodiments, the data query device 30 runs in a computer device. The data query device 30 may include a plurality of functional modules composed of program code segments. The program code of each program segment in the data query device 30 may be stored in a memory of the computer device and executed by at least one processor of the computer device to implement (see Figure 1 Description) Data query function.
[0087] In this embodiment, the data query device 30 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a generation module 301 and an execution module 302. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0088] The generating module 301 generates a user interface and displays the user interface on the display screen of the computer device, wherein the user interface includes a first query window, and the first query window is used to receive a first SQL query request input by a user.
[0089] In this embodiment, the computer device may be a personal computer, a server or other equipment.
[0090] In one embodiment, the user interface is a WEB page.
[0091] In one embodiment, the first query window is a text input box with a specified shape and size, located at a first position of the user interface. The first position can be any position on the user interface that is convenient for the user to input the first SQL query request, preferably a central position of the user interface.
[0092] When the first input signal is received, a second query window is added to the user interface, and the second query window is used to receive a second SQL query request input by the user.
[0093] In one embodiment, the second SQL query request may be the same as or different from the first SQL query request.
[0094] In one embodiment, the first input signal may refer to a signal generated by a user clicking / pressing / touching a preset first button. In one embodiment, the first button may be a virtual button pre-displayed in the user interface or a physical key of the computer device. In other embodiments, the first input signal may also refer to a signal generated by simultaneously pressing two or more different physical keys of the computer device.
[0095] In a first embodiment, the second query window may be a text input box having the same shape and size as the first query window. In other embodiments, the second query window may have a different shape and size than the first query window.
[0096] In the first embodiment, the second query window is also displayed at the first position, covering the first query window. At this time, the user's input at the first position is used as the second SQL query request.
[0097] In a second embodiment, the second query window may be located at a second position of the user interface, where the second position is different from the first position and does not overlap with the first position.
[0098] In one embodiment, the first query window is a floating window, and the execution module 302 can change the position of the first query window on the user interface when receiving a signal generated by a drag operation, that is, move the first query window from the first position to another position on the user interface. In one embodiment, the second query window can also be a floating window, and the execution module 302 can change the position of the second query window on the user interface when receiving a signal generated by a drag operation, that is, move the second query window from the first position or the second position to another position on the user interface.
[0099] In one embodiment, the execution module 302 may add a plurality of the second query windows when receiving a plurality of first input signals, that is, a second query window is added each time a first input signal is received.
[0100] In one embodiment, the execution module 302 may also delete one or more of the second query windows according to the user's input operation.
[0101] In the first embodiment, deleting one or more of the second query windows according to the user's input operation includes:
[0102] (a1) When each second query window is added to the user interface, a corresponding time (referred to as "added time" for convenience of description) is recorded for each second query window. The added time may be the current system time of the computer device.
[0103] (a2) When a signal generated by a user clicking / pressing / touching a preset delete button is received, the latest added second query window is deleted according to the added time corresponding to each second query window; or the earliest added second query window is deleted.
[0104] Therefore, each time the preset delete button is clicked / pressed / touched, the computer device deletes the earliest or latest added second query window among all the current second query windows.
[0105] In one embodiment, the latest addition can be defined as the latest addition time. For example, assume that the user interface currently includes three second query windows, namely query windows "B1", "B2", and "B3". Among them, the addition time corresponding to query window "B1" is the earliest (for example, 2018-07-02 09:05am), the addition time corresponding to query window "B3" is the latest (for example, 2018-07-02 09:10am), and the addition time corresponding to query window "B2" (for example, 2018-07-02 09:06am) is between the query windows "B1" and "B3". Then, when the user clicks / presses / touches the preset delete button for the first time, window "B3" is deleted. When the user clicks / presses / touches the preset delete button again, window "B2" is deleted. When the user clicks / presses / touches the preset delete button again, window "B1" is deleted. Of course, in other embodiments, when the user clicks / presses / touches the preset delete button, the second query window added earliest can be deleted. Thus, each time the preset delete button is clicked / pressed / touched, the second query window added earliest among all the current second query windows can be deleted. In one embodiment, the earliest addition can be defined as the earliest addition time.
[0106] In the second embodiment, deleting one or more of the second query windows according to the user's input operation includes:
[0107] (b1) When each second query window is added to the user interface, record the corresponding added time for each second query window. The added time may be the current system time of the computer device.
[0108] (b2) When a designated signal (eg, a double-click signal) is received from a second query window among the one or more second query windows, the second query window is deleted.
[0109] In a third implementation, deleting one or more of the second query windows according to an input operation of the user includes:
[0110] (c1) When each second query window is added to the user interface, record the corresponding added time for each second query window. The added time may be the current system time of the computer device.
[0111] (c2) When a specified signal (e.g., a double-click signal) is received from one of the one or more second query windows, and a signal generated by a user clicking / pressing / touching a preset button is also received, the second query window is deleted.
[0112] When receiving the second input signal, the execution module 302 obtains corresponding first query data from the specified first database according to the first SQL query request, and obtains corresponding second query data from the specified second database according to the second SQL query request.
[0113] In one embodiment, the second input signal may be a signal generated by a user clicking / pressing / touching a preset second button. In one embodiment, the second button may be a virtual button pre-displayed in the user interface or a physical key of the computer device. In other embodiments, the second input signal may also be a signal generated by simultaneously pressing two or more different physical keys of the computer device.
[0114] In one embodiment, the first database and the second database may be the same database or different databases.
[0115] The execution module 302 displays the obtained first query data and the second query data on the user interface.
[0116] In one embodiment, displaying the acquired first query data and second query data on the user interface includes:
[0117] The first query data is displayed at a third position of the user interface, and the second query data is displayed at a fourth position of the user interface.
[0118] In one embodiment, the third position is located at the periphery of the first query window, preferably at the lower position of the first query window. The fourth position is located at the periphery of the second query window, preferably at the lower position of the second query window.
[0119] When receiving the third input signal, the execution module 302 derives the first query data and the second query data.
[0120] In one embodiment, the third input signal may refer to a signal generated by a user clicking / pressing / touching a preset third button. In one embodiment, the third button may be a virtual button pre-displayed on the user interface or a physical key of the computer device. In other embodiments, the third input signal may also refer to a signal generated by simultaneously pressing two or more different physical keys of the computer device.
[0121] In one embodiment, the exporting the first query data and the second query data includes:
[0122] Import the first query data and the second query data into a CSV or Excel table, that is, output the first query data and the second query data as a CSV file or an Excel file.
[0123] Preferably, the first query data and the second query data are imported into different worksheets of the same CSV file or Excel file.
[0124] For example, the first query data is imported into sheet 1 of an Excel file, and the second query data is imported into sheet 2 of the Excel file.
[0125] In summary, the data query device described in the embodiment of the present invention generates a user interface and displays the user interface on the display screen of the computer device, wherein the user interface includes a first query window, and the first query window is used to receive a first SQL query request input by a user; when a first input signal is received, a second query window is added to the user interface, and the second query window is used to receive a second SQL query request input by the user; when a second input signal is received, the corresponding first query data is obtained from the specified first database according to the first SQL query request, and the corresponding second query data is obtained from the specified second database according to the second SQL query request; the obtained first query data and second query data are displayed on the user interface; and when a third input signal is received, the first query data and the second query data are exported, so that after improvement, the SQL query page supports multiple query windows and supports the separate export of query results, which is convenient for user operation.
[0126] Embodiment 3
[0127] See also Figure 3FIG. 1 is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. In a preferred embodiment of the present invention, the computer device 3 includes a memory 31, at least one processor 32, and at least one communication bus 33. Those skilled in the art should understand that Figure 3 The structure of the computer device shown does not constitute a limitation of the embodiments of the present invention, and may be a bus structure or a star structure. The computer device 3 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components.
[0128] In some embodiments, the computer device 3 includes a terminal that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices.
[0129] It should be noted that the computer device 3 is only an example, and other existing or future electronic products that are suitable for the present invention should also be included in the protection scope of the present invention and included here by reference.
[0130] In some embodiments, the memory 31 is used to store program codes and various data, such as the data query device 30 installed in the computer device 3, and to achieve high-speed and automatic access to programs or data during the operation of the computer device 3. The memory 31 includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0131] In some embodiments, the at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The at least one processor 32 is the control core (Control Unit) of the computer device 3, and uses various interfaces and lines to connect various components of the entire computer device 3, and executes various functions of the computer device 3 and processes data by running or executing programs or modules stored in the memory 31, and calling data stored in the memory 31, such as executing data query functions.
[0132] In some embodiments, the at least one communication bus 33 is configured to implement connection and communication between the memory 31 and the at least one processor 32, etc.
[0133] Although not shown, the computer device 3 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 32 through a power management device, so that the power management device can manage charging, discharging, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The computer device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0134] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0135] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a server, a personal computer, etc.) or a processor to execute a part of the method described in each embodiment of the present invention.
[0136] In a further embodiment, in combination Figure 2 The at least one processor 32 can execute the operating device of the computer device 3 and various installed application programs (such as the data query device 30), program codes, etc., for example, the above-mentioned modules.
[0137] The memory 31 stores program codes, and the at least one processor 32 can call the program codes stored in the memory 31 to execute related functions. For example, Figure 2 The modules described in the embodiment are program codes stored in the memory 31 and are executed by the at least one processor 32, thereby realizing the functions of the modules and achieving the purpose of data query.
[0138] In one embodiment of the present invention, the memory 31 stores one or more instructions, namely, at least one instruction, and the at least one instruction is executed by the at least one processor 32 to achieve the purpose of data query.
[0139] Specifically, the specific implementation method of the at least one processor 32 for the at least one instruction can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0140] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0141] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0143] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data query method, characterized in that: The method comprises: Generate a user interface, and display the user interface on a display screen of a computer device, wherein the user interface includes a first query window, and the first query window is used to receive a first SQL query request input by a user; Adding multiple second query windows includes: when receiving a first input signal, adding a second query window at a second position of the user interface, and changing the position of the second query window on the user interface in response to a signal generated by a drag operation, wherein each second query window is a floating window for receiving a second SQL query request input by a user; When a second input signal is received, obtaining corresponding first query data from a specified first database according to the first SQL query request, and obtaining corresponding second query data from a specified second database according to the second SQL query request; Displaying the acquired first query data and second query data on the user interface; When a third input signal is received, deriving the first query data and the second query data; and According to the user's input operation, one or more second query windows are deleted, including: when each second query window is added to the user interface, the corresponding added time is recorded for each second query window, and the added time is the current system time of the computer device; and when a signal is received from a delete button, according to the added time corresponding to each second query window, the earliest added or the latest added second query window is deleted.
2. The data query method according to claim 1, characterized in that: The first query window and the second query window are text input boxes with specified shapes and sizes respectively.
3. The data query method according to claim 1, characterized in that: The first query window is located at a first position of the user interface, and the second position is different from the first position and does not overlap with the first position.
4. The data query method according to claim 3, characterized in that: The first query window is a floating window, and the method further includes: When a signal generated by a drag operation is received, the first query window is moved from the first position to another position of the user interface.
5. The data query method according to claim 1, characterized in that: The displaying of the first query data and the second query data obtained on the user interface includes: Displaying the first query data at a third position of the user interface, and displaying the second query data at a fourth position of the user interface; The third position is located below the first query window, and the fourth position is located below the second query window.
6. The data query method according to claim 1, characterized in that: The exporting of the first query data and the second query data comprises: Import the first query data and the second query data into a CSV or Excel table.
7. A computer device, characterized in that: The computer device includes a processor and a memory, the memory is used to store at least one instruction, and the processor is used to execute the at least one instruction to implement the data query method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the data query method according to any one of claims 1 to 6 is implemented.
9. A data query device, characterized in that: The device comprises: A generating module, used for generating a user interface, and displaying the user interface on a display screen of a computer device, wherein the user interface includes a first query window, and the first query window is used for receiving a first SQL query request input by a user; an execution module, configured to add a plurality of second query windows, comprising: when receiving a first input signal, adding a second query window at a second position of the user interface, and changing the position of the second query window on the user interface in response to a signal generated by a drag operation, wherein each second query window is configured to receive a second SQL query request input by a user; The execution module is further configured to, when receiving a second input signal, obtain corresponding first query data from a specified first database according to the first SQL query request, and obtain corresponding second query data from a specified second database according to the second SQL query request; The execution module is further configured to display the acquired first query data and the acquired second query data on the user interface; and The execution module is also used to export the first query data and the second query data when a third input signal is received; and delete one or more second query windows according to the user's input operation, including: when each second query window is added to the user interface, record the corresponding added time for each second query window, and the added time is the current system time of the computer device; and when a signal is received from a delete button, delete the earliest added or the latest added second query window according to the added time corresponding to each second query window.
