Information query method, device, computing equipment and medium for database

By responding to query requests for data operation results in the database and providing corresponding source data, it solves the problem that users cannot judge the authenticity of data operation results, realizes the validity judgment of data operation results, and improves the accuracy of data management.

CN112100502BActive Publication Date: 2024-09-24BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011019683.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-24
Publication Date
2024-09-24
Estimated Expiration
2040-09-24

AI Technical Summary

Technical Problem

In the existing data calculation engine technology, users cannot obtain the source data corresponding to the generated data calculation results, resulting in the inability to judge the authenticity and validity of the data calculation results, especially when there are erroneous data or calculation errors in the database. Research and judgment on misinformation.

Method used

Provide an information query method for the database. By responding to the query request of the data operation result, the corresponding relevant data filtered out from the database is provided as the query result. The user can judge the authenticity of the data operation result based on these source data. sex and effectiveness.

Benefits of technology

By providing source data corresponding to the data calculation results, users can effectively judge the authenticity and validity of the data calculation results, avoid misleading information judgment, and improve the accuracy of data management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112100502B
    Figure CN112100502B
Patent Text Reader

Abstract

The present disclosure provides an information query method, device, computing device and medium for a database, which relates to the field of computer technology, in particular to the field of databases, and can be used in cloud platforms or cloud service scenarios. The information query method includes: in response to a first query request, providing at least one data operation result related to the first query request as a first query result, wherein at least one data operation result is obtained based on first relevant data filtered out from a database according to a preset rule; and in response to a second query request for one of the at least one data operation results, providing second relevant data filtered out from the database corresponding to the data operation result as a second query result. According to the method of an embodiment of the present disclosure, the authenticity and validity of the generated data operation result can be judged with the help of the second query result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an information query method, device, computing equipment and medium for a database. Background Art

[0002] The data calculation engine can generate data calculation results based on the input data. The data calculation results can be used to help users describe and classify data content, making it easier for users to manage data. The data calculation engine usually generates data calculation results belonging to multiple objects based on the data in the database according to the set calculation rules or calculation logic. The generated data calculation results are used to describe the characteristics or attributes of the object.

[0003] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0004] According to one aspect of the present disclosure, there is provided an information query method for a database, comprising: in response to a first query request, providing at least one data operation result related to the first query request as a first query result, wherein the at least one data operation result is obtained based on first relevant data filtered out from the database according to a preset rule; and in response to a second query request for one of the at least one data operation results, providing second relevant data filtered out from the database corresponding to the data operation result as a second query result.

[0005] According to another aspect of the present disclosure, there is also provided an information query device for a database, comprising: a first query unit, configured to provide, in response to a first query request, at least one data operation result related to the first query request as a first query result, wherein the at least one data operation result is obtained based on first relevant data filtered out from the database according to a preset rule; and a second query unit, configured to provide, in response to a second query request for one of the at least one data operation results, second relevant data filtered out from the database corresponding to the data operation result as a second query result.

[0006] According to another aspect of the present disclosure, a computing device is provided, including: a processor; and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the above-mentioned information query method for a database.

[0007] According to another aspect of the present disclosure, a computer-readable storage medium storing a program is provided. The program includes instructions, which, when executed by a processor of a computing device, cause the computing device to execute the above-mentioned information query method for a database.

[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the above-mentioned information query method for a database when executed by a processor.

[0009] In one or more embodiments of the present disclosure, in response to a query request for a data calculation result, relevant data filtered out from a database corresponding to the data calculation result is provided as a query result, which helps the user of the data calculation engine to judge the authenticity and validity of the generated data calculation result based on the source data corresponding to the generated data calculation result, thereby avoiding misleading the user of the data calculation engine when the source data is incorrect or the calculation is incorrect, and resolving the user's questions about the data calculation result. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0011] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0012] Figure 2 is a flow chart illustrating an information query method for a database according to an exemplary embodiment of the present disclosure;

[0013] Figure 3 is a user interface schematic diagram illustrating an information query method according to an exemplary embodiment of the present disclosure;

[0014] Figure 4 is a user interface schematic diagram illustrating an information query method according to an exemplary embodiment of the present disclosure;

[0015] Figure 5 is a user interface schematic diagram illustrating an information query method according to an exemplary embodiment of the present disclosure;

[0016] Figure 6 is a user interface schematic diagram illustrating an information query method according to an exemplary embodiment of the present disclosure;

[0017] Figure 7is a block diagram illustrating an information query device for a database according to an exemplary embodiment of the present disclosure; and

[0018] Figure 8 is a block diagram illustrating the structure of an exemplary computer system that can be applied to the example embodiments. DETAILED DESCRIPTION

[0019] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0020] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0021] The data calculation engine (e.g., label engine) usually generates data calculation results belonging to multiple objects (i.e., data subjects corresponding to one or more data in the database) according to the set calculation rules or calculation logic based on the data in the database (e.g., generates labels belonging to the objects for multiple objects), and the generated data calculation results (e.g., generated labels) are used to describe the characteristics or attributes of the objects. However, due to reasons such as incorrect data in the database or incorrect calculations by the data calculation engine, users of the data calculation engine may have doubts about the generated data calculation results.

[0022] The inventors have found that in the existing data calculation engine technology, the user of the data calculation engine cannot obtain the source data corresponding to the generated data calculation result. Therefore, the user cannot judge the authenticity and validity of the generated data calculation result based on the source data corresponding to the generated data calculation result. In the case that the data in the database is wrong or the calculation of the data calculation engine is wrong, the user may make an erroneous information judgment.

[0023] In order to solve the above technical problems, the present disclosure provides a method, apparatus, computing device and medium for information query in a database. The embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings.

[0024] In order to more clearly explain the information query method provided by the present disclosure, the application scenario of the present disclosure is first introduced:

[0025] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 that can implement various methods and apparatuses described herein according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0026] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of an information query method for a database.

[0027] In some embodiments, the server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components.

[0028] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0029] A user may use client devices 101, 102, 103, 104, 105, and / or 106 to query and browse data. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.

[0030] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computing systems, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, thin clients, various messaging devices, sensors or other sensing devices, etc. These computing devices may run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays and other devices. Client devices are capable of executing a variety of different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0031] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0032] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0033] The computing system in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating system. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0034] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0035] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. The data repository 130 may reside in various locations. For example, the data repository used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The data repository 130 may be of different types. In some embodiments, the data repository used by the server 120 may be a database, such as a relational database or a non-relational database. One or more of these databases may store, update, and retrieve data to and from the database in response to a command.

[0036] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0037] Figure 1 The system 100 can be configured and operated in various ways to enable the application of various methods and devices described in the present disclosure. For example, Figure 2 A flow chart of an information query method for a database according to an exemplary embodiment of the present disclosure is shown. In this embodiment, the system 100 can be configured according to the method 200 to provide relevant data selected from the database corresponding to the data operation result as a query result in response to a query request for the data operation result.

[0038] Continue to refer Figure 2 , Figure 2FIG. 1 is a flow chart showing an information query method for a database according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the information query method includes: step S210: in response to a first query request, providing at least one data operation result related to the first query request as a first query result, wherein the at least one data operation result is obtained based on first relevant data filtered out from a database according to a preset rule; and step S220: in response to a second query request for one of the at least one data operation results, providing second relevant data filtered out from the database corresponding to the data operation result as a second query result.

[0039] Therefore, by providing relevant data in the database corresponding to the queried data operation result, it can help the user who initiates the query request to judge the authenticity and validity of the generated data operation result based on the relevant data in the database corresponding to the queried data operation result, thereby avoiding the user being misled by the data operation result when the relevant data in the database is incorrect or the data operation process is incorrect. Therefore, the doubts of the user who initiated the query request about the data operation result can be resolved. In one example, the user obtains a label (such as a label of "frequently surfing the Internet at midnight") through a first query request. When the user has doubts about the label, the user initiates a second query request for the label, then the user can obtain the source data related to the label that is filtered out from the database to judge the authenticity and validity of the generated label.

[0040] The following will be combined Figure 3 and Figure 4 An application scenario of the information query method for a database according to an exemplary embodiment of the present disclosure is described.

[0041] According to some embodiments, the first query request is selected from a plurality of predefined query requests, and wherein the preset rules depend on the content of the first query request. In some examples, the plurality of predefined first query requests may include predefined tag names such as "frequently surfing the Internet at midnight", "frequently staying in a hotel at midnight", and "frequently entering and exiting entertainment venues", where the content of the query corresponds to the predefined tag name of the query. Depending on the different query contents, the data operation results (i.e., tags) provided are obtained based on the first relevant data screened from the database according to different preset rules, wherein the first relevant data may be the corresponding source data for generating tags.

[0042] According to some embodiments, in response to the first query request being a query request of the first category, the first query result is directly obtained based on first relevant data screened from a data table of the first category in the database according to a preset rule. Figure 3For example, if the first query request is to query people who "frequently surf the Internet at midnight", and the first query request belongs to the first category, then in response to the first query request, a list of all people with the label "frequently surf the Internet at midnight" is provided to the user, wherein the label "frequently surf the Internet at midnight" of each person is the first query result. In some cases, the user who initiates the query may have questions about the labels of one or more people with the label "frequently surf the Internet at midnight", and the user may issue a second query request for the label "frequently surf the Internet at midnight" of one or more people. In response to the second query request, the user is provided with second related data corresponding to the data operation result of the person's "frequently surfing the Internet at midnight" that is screened out from the data table of the first category in the database as the second query result.

[0043] As described above, for the first query request of the first category, when the tag engine generates the above-mentioned tag of "frequently surfing the Internet at midnight", it will directly filter out people with such online behavior in the data table of the first category in the database (for example, the trajectory data table that records the trajectory information of personnel behavior) according to the predetermined rules (for example, more than 3 times in a week, and the online time from 0:00 to 5:00 in the morning are defined as "frequent" and "midnight" respectively), and generate the tag of "frequently surfing the Internet at midnight" for these people. The personnel behavior trajectory information recorded in the trajectory data table may include the ID of the person, the time when the person was observed, and the ID of the device that observed the person, etc. In response to the second query request of the user, the relevant data used to generate the "frequently surfing the Internet at midnight" tag can be obtained from the trajectory data table in the database as the second relevant data. The second relevant data can be the personnel ID of a certain person, the time when the person was observed, and the ID of the device that observed the person, etc. The second relevant data is provided to the user as the second query result, and the user can judge the authenticity and validity of the generated tag based on the second relevant data.

[0044] According to some embodiments, in response to the first query request being a query request of the second category, the first query result is obtained based on the first relevant data screened from the data table of the second category in the database according to a preset rule, and wherein the field types stored in the data table of the second category are more than those in the data table of the first category. Figure 4For example, if the first query request is to query people who "frequently stay in hotels late at night", and the first query request belongs to the second category, then in response to the first query request, a list of all people with the label "frequently stay in hotels late at night" is provided to the user, wherein the label "frequently stay in hotels late at night" of each person is the first query result. In some cases, the user who initiates the query may have questions about the labels of one or more people with the label "frequently stay in hotels late at night", and the user can issue a second query request for the label "frequently stay in hotels late at night" of one or more people. In response to the second query request, second related data corresponding to the data calculation result of the person's "frequently stay in hotels late at night" is provided to the user as the second query result.

[0045] As described above, for the first query request of the second category, when the tag engine generates the above-mentioned "frequent midnight hotel stay" tag, since the generation of the tag requires the address information of the hotel, and the hotel address information is not included in the above-mentioned trajectory data table, the tag engine will store the information related to the person's hotel stay (for example, the person ID, hotel stay time, hotel address, etc.) as the intermediate storage result in the data table of the second category, and then based on the intermediate storage result, according to the predetermined rules (for example, more than 3 times in a week, and the check-in time is defined as "frequent" and "midnight" respectively) to screen out the people with such hotel stay behavior, and generate the "frequent midnight hotel stay" tag for these people. In response to the user's second query request, the relevant data for generating the "frequent midnight hotel stay" tag can be obtained from the data table of the second category in the database where the intermediate storage result is stored as the second relevant data. The second relevant data can be the person ID, hotel stay time and hotel address of a certain person. The second relevant data is provided to the user as the second query result, and the user can judge the authenticity and validity of the generated tag according to the second relevant data.

[0046] Furthermore, when the amount of data in the database is large, especially when there is a large amount of data, it is also possible to obtain at least one data operation result related to the query request based on at least one of the multiple predefined query requests before executing the step of "responding to the first query request, providing at least one data operation result related to the first query request as the first query result". In one example, before receiving the first query request, a label is first generated based on the data in the database according to predefined rules, and after receiving the first query request initiated by the user, the label is provided to the user who initiated the query request, so that query results can be provided quickly even when the amount of data is large. Furthermore, the data in the database can be updated regularly to make the generated labels more timely.

[0047] The following will be combined Figure 5 and Figure 6 Another application scenario of the information query method for a database according to an exemplary embodiment of the present disclosure is described.

[0048] According to some embodiments, the content of the first query request is one of a plurality of data subjects respectively corresponding to the data in the database, and wherein the preset rule does not depend on the content of the first query request. For example, the content of the first query request may be the tags possessed by the querying person A, and in response to the first query request, all tags of the person A are provided to the user initiating the query as the first query result. For example, all tags of the person A may include: "frequently surfing the Internet at midnight", "frequently staying in a hotel at midnight", and "frequently entering and exiting entertainment venues".

[0049] As described above, each of the at least one data operation result corresponds to a corresponding preset rule, and indicates that the corresponding preset rule has been satisfied. For example, all tags of person A include: "frequently surfing the Internet at midnight", "frequently staying in a hotel at midnight", and "frequently entering and leaving entertainment venues". The preset rules corresponding to the above three tags are different. The following will describe in detail an exemplary embodiment to illustrate the corresponding second query after different types of tags are generated for person A according to different preset rules.

[0050] According to some embodiments, in response to the preset rule being a rule of the first category, the data operation result corresponding to the preset rule is directly obtained based on the relevant data filtered out from the data table of the first category in the database according to the preset rule. For example, the original data required to generate the label "frequently surfing the Internet at midnight" comes from the data table of the first category (e.g., the trajectory data table), so the rule corresponding to the label can be directly obtained from the trajectory data table. Figure 5 If the user who initiates the query has questions about the label of "frequently surfing the Internet late at night" of person A, the user can issue a second query request for the label of "frequently surfing the Internet late at night" of person A. In response to the second query request, the user is provided with relevant data filtered out from the database corresponding to the data calculation result of "frequently surfing the Internet late at night" of person A as the second query result.

[0051] As described above, when the tag engine generates the above-mentioned tag of "frequently surfing the Internet at midnight", it will directly filter out people with such online behavior in the first category of data tables in the database (e.g., the trajectory data table that records the trajectory information of personnel behavior) according to the predetermined rules (e.g., more than 3 times in a week, and the online time from 0:00 to 5:00 in the morning are defined as "frequent" and "midnight" respectively), and generate the tag of "frequently surfing the Internet at midnight" for these people. The personnel behavior trajectory information recorded in the trajectory data table may include the ID of the person, the time when the person was observed, and the ID of the device that observed the person, etc. In response to the user's second query request for the tag of "frequently surfing the Internet at midnight" of person A, the relevant data used to generate the tag of "frequently surfing the Internet at midnight" can be obtained from the trajectory data table in the database as the second relevant data. The second relevant data can be the ID of person A, the time when person A was observed, and the ID of the device that observed person A, etc. The second relevant data is provided to the user as the second query result, and the user can judge the authenticity and validity of the generated tag of "frequently surfing the Internet at midnight" of person A based on the second relevant data.

[0052] According to some embodiments, in response to the preset rule being a rule of the second category, the data operation result corresponding to the preset rule is obtained based on the relevant data screened from the data table of the second category in the database according to the preset rule, and wherein the field types stored in the data table of the second category are more than those in the data table of the first category. For example, the original data required to generate the label "frequently visit entertainment venues" comes from the data table of the second category, so the rule corresponding to the label can be to obtain the data operation result from the data table of the second category. Figure 6 If the user who initiates the query has questions about the label of "frequently entering and leaving entertainment venues" of person A, the user can issue a second query request for the label of "frequently entering and leaving entertainment venues" of person A. In response to the second query request, the user is provided with relevant data filtered out from the database corresponding to the data calculation result of "frequently entering and leaving entertainment venues" of person A as the second query result.

[0053] As described above, when the tag engine generates the above-mentioned "frequently enter and exit entertainment venues" tag, since the generation of the tag requires the address information of the entertainment venue, and the address information of the entertainment venue is not included in the above-mentioned trajectory data table, the tag engine will store the information related to the personnel entering and exiting the entertainment venue (for example, personnel ID, time of entering and exiting the entertainment venue, address of the entertainment venue, etc.) as the intermediate storage result in the second category of data table, and then screen out the personnel with such entertainment venue entry and exit behaviors according to the predetermined rules (for example, more than 3 times in a week is defined as "frequent") based on the intermediate storage result, and generate the "frequently enter and exit entertainment venues" tag for these personnel. In response to the user's second query request for the "frequently enter and exit entertainment venues" tag of person A, the relevant data for generating the "frequently enter and exit entertainment venues" tag can be obtained from the second category of data table in the database storing the intermediate storage result as the second relevant data, and the second relevant data can be the personnel ID of person A, the time of entering and exiting the entertainment venue, and the address of the entertainment venue. The second relevant data is provided to the user as the second query result, and the user can judge the authenticity and validity of the generated "frequently enter and exit entertainment venues" tag of person A based on the second relevant data.

[0054] According to another aspect of the present disclosure, there is also provided an information query device for a database, such as Figure 7 As shown, the information query device 700 may include a first query unit 710, which is configured to provide at least one data operation result related to the first query request as a first query result in response to a first query request, wherein the at least one data operation result is obtained based on first relevant data filtered out from a database according to a preset rule; and a second query unit 720, which is configured to provide second relevant data corresponding to the data operation result filtered out from the database as a second query result in response to a second query request for one of the at least one data operation results.

[0055] Here, the operations of the above-mentioned units 710-720 of the information query device 700 are similar to the operations of the steps S210-S220 described above, and will not be repeated here.

[0056] According to another aspect of the present disclosure, a computing device is provided, which may include: a processor; and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the above-mentioned information query method.

[0057] According to another aspect of the present disclosure, a computer-readable storage medium storing a program is further provided. The program includes instructions, which, when executed by a processor of a computing device, cause the computing device to execute the above-mentioned information query method.

[0058] See also Figure 8 As shown, a computing device 2000 will now be described, which is an example of a hardware device (computing device) that can be applied to various aspects of the present disclosure. The computing device 2000 can be any machine configured to perform processing and / or calculations, and can be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal digital assistant, a robot, a smart phone, a vehicle-mounted computer, or any combination thereof. The above-mentioned information query method can be implemented in whole or in part by the computing device 2000 or a similar device or system.

[0059] The computing device 2000 may include an element connected to or in communication with the bus 2002 (possibly via one or more interfaces). For example, the computing device 2000 may include a bus 2002, one or more processors 2004, one or more input devices 2006, and one or more output devices 2008. The one or more processors 2004 may be any type of processor, and may include, but are not limited to, one or more general-purpose processors and / or one or more special-purpose processors (e.g., special processing chips). The input device 2006 may be any type of device capable of inputting information to the computing device 2000, and may include, but are not limited to, a mouse, a keyboard, a touch screen, a microphone, and / or a remote controller. The output device 2008 may be any type of device capable of presenting information, and may include, but are not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The computing device 2000 may also include or be connected to a non-transitory storage device 2010, which may be any storage device that is non-transitory and can implement data storage, and may include but is not limited to a disk drive, an optical storage device, a solid-state memory, a floppy disk, a flexible disk, a hard disk, a tape or any other magnetic medium, an optical disk or any other optical medium, a ROM (read-only memory), a RAM (random access memory), a cache memory and / or any other memory chip or cartridge, and / or any other medium from which a computer can read data, instructions and / or code. The non-transitory storage device 2010 may be detachable from the interface. The non-transitory storage device 2010 may have data / programs (including instructions) / code for implementing the above methods and steps. The computing device 2000 may also include a communication device 2012. The communication device 2012 can be any type of device or system that enables communication with an external device and / or with a network, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication device and / or a chipset, such as a Bluetooth™ device, a 1302.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.

[0060] The computing device 2000 may also include a working memory 2014, which may be any type of working memory that can store programs (including instructions) and / or data useful for the operation of the processor 2004, and may include, but is not limited to, random access memory and / or read-only memory devices.

[0061] The software elements (programs) may be located in the working memory 2014, including but not limited to the operating system 2016, one or more applications 2018, drivers and / or other data and codes. Instructions for executing the above methods and steps may be included in one or more applications 2018, and the above information query method may be implemented by the processor 2004 reading and executing the instructions of one or more applications 2018. More specifically, in the steps S210-step S220 of the above information query method, it may be implemented, for example, by the processor 2004 executing the application 2018 having the instructions of the steps S210-step S220. In addition, the other steps in the above information query method may be implemented, for example, by the processor 2004 executing the application 2018 having the instructions in the corresponding steps. The executable code or source code of the instructions of the software element (program) may be stored in a non-transitory computer-readable storage medium (such as the above storage device 2010), and may be stored in the working memory 2014 (possibly compiled and / or installed) when executed. The executable code or source code of the instructions of the software element (program) may also be downloaded from a remote location.

[0062] It should also be understood that various modifications may be made according to specific requirements. For example, custom hardware may also be used, and / or specific elements may be implemented in hardware, software, firmware, middleware, microcode, hardware description language, or any combination thereof. For example, some or all of the disclosed methods and apparatus may be implemented by programming hardware (e.g., programmable logic circuits including field programmable gate arrays (FPGAs) and / or programmable logic arrays (PLAs)) in assembly language or hardware programming languages ​​(such as VERILOG, VHDL, C++) using logic and algorithms according to the present disclosure.

[0063] It should also be understood that the foregoing method can be implemented through a server-client model. For example, the client can receive data input by the user and send the data to the server. The client can also receive data input by the user, perform a portion of the processing in the foregoing method, and send the processed data to the server. The server can receive data from the client, and execute the foregoing method or another portion of the foregoing method, and return the execution result to the client. The client can receive the execution result of the method from the server, and present it to the user, for example, through an output device.

[0064] It should also be understood that the components of computing device 2000 can be distributed across a network. For example, some processing can be performed using one processor while other processing can be performed by another processor remote from the one processor. Other components of computing system 2000 can also be similarly distributed. In this way, computing device 2000 can be interpreted as a distributed computing system that performs processing at multiple locations.

[0065] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A method for querying information in a database, comprising: In response to a first query request, providing at least one data operation result related to the first query request as a first query result, wherein the at least one data operation result is obtained based on first relevant data screened from the database according to a preset rule; and In response to a second query request for one of the at least one data operation result, providing second related data selected from the database corresponding to the data operation result as a second query result, Wherein, in response to the first query request being a query request of the first category, the first query result is directly obtained based on the first relevant data screened from the data table of the first category in the database according to the preset rule; Wherein, in response to the first query request being a query request of the second category, the first query result is obtained based on the first relevant data screened out from the data table of the second category in the database according to the preset rule, and wherein the field types stored in the data table of the second category are more than those in the data table of the first category; and the method also includes storing the first relevant data as an intermediate storage result, wherein, in response to the second query request, the second relevant data is obtained from the intermediate storage result.

2. The information query method according to claim 1, wherein: The first query request is selected from a plurality of predefined query requests, and wherein the preset rule depends on the content of the first query request.

3. The information query method according to claim 2, wherein: Before executing the step of "providing at least one data operation result related to the first query request as a first query result in response to the first query request", at least one data operation result related to the query request is obtained based on at least one of the multiple predefined query requests.

4. The information query method according to claim 1, wherein: The content of the first query request is one of a plurality of data subjects respectively corresponding to the data in the database, and wherein the preset rule does not depend on the content of the first query request.

5. The information query method according to claim 4, wherein: Each of the at least one data operation result corresponds to a corresponding preset rule, and indicates that the corresponding preset rule has been satisfied.

6. The information query method according to claim 5, wherein: In response to the preset rule being a rule of the first category, the data operation result corresponding to the preset rule is directly obtained based on the relevant data screened from the data table of the first category in the database according to the preset rule.

7. The information query method according to claim 6, wherein: In response to the preset rule being a rule of the second category, the data operation result corresponding to the preset rule is obtained based on the relevant data screened from the data table of the second category in the database according to the preset rule, and wherein the field types stored in the data table of the second category are more than those in the data table of the first category.

8. The information query method according to claim 7, further comprising: storing the first related data as an intermediate storage result, Wherein, in response to the second query request, the second related data is obtained from the intermediate storage result.

9. An information query device for a database, comprising: a first query unit configured to provide, in response to a first query request, at least one data operation result related to the first query request as a first query result, wherein the at least one data operation result is obtained based on first related data screened from the database according to a preset rule; and The second query unit is configured to provide, in response to a second query request for one of the at least one data operation result, second related data selected from the database corresponding to the data operation result as a second query result, The first query unit is further configured to, in response to the first query request being a query request of the first category, directly obtain the first query result based on the first relevant data screened from the data table of the first category in the database according to the preset rule; Wherein, the first query unit is further configured to respond to the first query request being a query request of the second category, the first query result is obtained based on the first relevant data screened out from the data table of the second category in the database according to the preset rule, and wherein the field types stored in the data table of the second category are more than those in the data table of the first category; and the information query device is configured to store the first relevant data as an intermediate storage result, wherein the second query unit is further configured to obtain the second relevant data from the intermediate storage result in response to the second query request.

10. A computing device, comprising: processor; as well as A memory storing a program, the program comprising instructions which, when executed by the processor, cause the processor to perform the method according to any one of claims 1-8.

11. A computer-readable storage medium storing a program, the program comprising instructions which, when executed by a processor of a computing device, cause the computing device to perform the method according to any one of claims 1 to 8.

12. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.