Nothing Special   »   [go: up one dir, main page]

CN113868375A - Data query method, device, device and storage medium based on structured query language - Google Patents

Data query method, device, device and storage medium based on structured query language Download PDF

Info

Publication number
CN113868375A
CN113868375A CN202111091779.9A CN202111091779A CN113868375A CN 113868375 A CN113868375 A CN 113868375A CN 202111091779 A CN202111091779 A CN 202111091779A CN 113868375 A CN113868375 A CN 113868375A
Authority
CN
China
Prior art keywords
data
query
keyword
data query
query statement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111091779.9A
Other languages
Chinese (zh)
Inventor
徐子岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yicheng Times Technology Co ltd
Original Assignee
Beijing Yicheng Times Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yicheng Times Technology Co ltd filed Critical Beijing Yicheng Times Technology Co ltd
Priority to CN202111091779.9A priority Critical patent/CN113868375A/en
Publication of CN113868375A publication Critical patent/CN113868375A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及一种基于结构化查询语言的数据查询方法、装置、设备及存储介质,该方法包括:接收用户在文本文档内输入的数据查询语句,根据所述数据查询语句,生成携带有查询关键词的树形结构数据,针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据,将所述数据查询语句对应的查询数据返回给所述用户。通过上述方法,通过结构化查询语言构建的搜索方式,可以使用户能够在文本文档内根据自己的搜索需求,灵活设计复杂的数据查询语句,大大提高了搜索方式的灵活性。

Figure 202111091779

The invention relates to a data query method, device, device and storage medium based on structured query language. The method includes: receiving a data query statement input by a user in a text document, and generating a query key carrying a query key according to the data query statement. The tree structure data of the word, for each database to be queried, according to the query type of the database and the tree structure data, generate a retrieval formula corresponding to the database, and retrieve the database according to the retrieval formula to obtain the query data corresponding to the data query statement, and return the query data corresponding to the data query statement to the user. Through the above method, the search method constructed by the structured query language can enable users to flexibly design complex data query sentences in the text document according to their own search requirements, which greatly improves the flexibility of the search method.

Figure 202111091779

Description

基于结构化查询语言的数据查询方法、装置、设备及存储介质Data query method, device, device and storage medium based on structured query language

技术领域technical field

本发明涉及计算机技术领域,具体涉及一种基于结构化查询语言的数据查询方法、一种基于结构化查询语言的数据查询装置、一种基于结构化查询语言的数据查询设备以及一种计算机存储介质。The invention relates to the field of computer technology, in particular to a data query method based on structured query language, a data query device based on structured query language, a data query device based on structured query language, and a computer storage medium .

背景技术Background technique

随着现代互联网技术的快速发展,存储在数据库内的数据量也越来越多。With the rapid development of modern Internet technology, the amount of data stored in the database is also increasing.

目前,为了提高用户从数据库中获取数据的效率,通常使用搜索工具在数据库中搜索所需的数据。Currently, in order to improve the efficiency of obtaining data from a database, a search tool is usually used to search the database for desired data.

现有的搜索工具通常都是向用户展示一个交互界面,交互界面上设置有多个搜索条件不同的搜索栏,按照搜索侧重点的要求在不同的搜索栏内输入相应的搜索词来查询用户所需的数据。Existing search tools usually display an interactive interface to the user. The interactive interface is provided with multiple search fields with different search conditions. According to the requirements of the search focus, input the corresponding search words in different search fields to query the user's information. required data.

在现有技术中,现有搜索工具展示给用户的交互界面都是固定的,用户只能按照交互界面上固定的搜索条件搜索所需的数据,搜索方式极为的不灵活。In the prior art, the interactive interface displayed to the user by the existing search tool is all fixed, and the user can only search the required data according to the fixed search conditions on the interactive interface, and the search method is extremely inflexible.

发明内容SUMMARY OF THE INVENTION

本发明提供一种基于结构化查询语言的数据查询,能够解决现有搜索工具的搜索方式极为的不灵活的技术问题。The invention provides a data query based on a structured query language, which can solve the technical problem that the search method of the existing search tool is extremely inflexible.

本发明解决上述技术问题的技术方案如下:The technical scheme that the present invention solves the above-mentioned technical problems is as follows:

根据本发明的第一方面,提供了一种基于结构化查询语言的数据查询方法,包括:According to a first aspect of the present invention, a data query method based on a structured query language is provided, comprising:

接收用户在文本文档内输入的数据查询语句;Receive the data query statement entered by the user in the text document;

根据所述数据查询语句,生成携带有查询关键词的树形结构数据;generating tree-structured data carrying query keywords according to the data query statement;

针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据;For each database to be queried, a retrieval formula corresponding to the database is generated according to the query type of the database and the tree structure data, and the database is retrieved according to the retrieval formula to obtain query data corresponding to the data query statement ;

将所述数据查询语句对应的查询数据返回给所述用户。The query data corresponding to the data query statement is returned to the user.

可选地,其中,所述数据查询语句包括:查询数据源的名称、显示的字段名称、过滤条件、排序规则或跳过最初的数据条数中的至少一个。Optionally, the data query statement includes: querying at least one of the name of the data source, the displayed field name, filter conditions, sorting rules, or skipping the initial number of data items.

可选地,其中,根据所述数据查询语句,生成携带有查询关键词的树形结构数据,包括:Optionally, wherein, according to the data query statement, generate tree-structured data carrying query keywords, including:

对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词;Semantic analysis is performed on the data query statement to determine the query keywords of the data query statement;

将所述数据查询语句的查询关键词添加到树形结构中,生成携带有查询关键词的树形结构数据。The query keywords of the data query statement are added to the tree structure to generate tree structure data carrying the query keywords.

可选地,其中,对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词,包括:Optionally, performing semantic analysis on the data query statement to determine query keywords of the data query statement, including:

根据预设的词语列表,确定并提取所述数据查询语句内的关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本;According to the preset word list, determine and extract the keywords in the data query statement to obtain a keyword list corresponding to the data query statement, wherein the keyword list includes the name of the keyword and the position of the keyword information and the original text corresponding to the keyword;

根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。According to the keyword list corresponding to the data query statement, the query keyword of the data query statement is determined.

可选地,其中,对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词,包括:Optionally, performing semantic analysis on the data query statement to determine query keywords of the data query statement, including:

对所述数据查询语句进行切词处理,得到词语序列;Perform word segmentation processing on the data query statement to obtain a word sequence;

获取所述词语序列中指定词性的词语;Obtain the words of the specified part of speech in the word sequence;

将获取到的词语作为关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本;Using the acquired words as keywords, a keyword list corresponding to the data query statement is obtained, wherein the keyword list includes the name of the keyword, the location information of the keyword, and the original text corresponding to the keyword;

根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。According to the keyword list corresponding to the data query statement, the query keyword of the data query statement is determined.

可选地,其中,根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词,包括:Optionally, wherein, according to the keyword list corresponding to the data query statement, the query keywords of the data query statement are determined, including:

对所述数据查询语句对应的关键词列表内的每个关键词进行语法分析,确定每个关键词是否符合语法结构;Syntactic analysis is performed on each keyword in the keyword list corresponding to the data query statement to determine whether each keyword conforms to the grammatical structure;

将符合语法结构的关键词确定为所述数据查询语句的查询关键词。A keyword that conforms to the grammatical structure is determined as the query keyword of the data query statement.

可选地,其中,所述查询关键词的词性为谓词词性。Optionally, the part of speech of the query keyword is a predicate part of speech.

根据本发明的第二方面,提供了一种基于结构化查询语言的数据查询装置,包括:According to a second aspect of the present invention, a data query device based on structured query language is provided, comprising:

接收模块,用于接收用户在文本文档内输入的数据查询语句;The receiving module is used to receive the data query statement input by the user in the text document;

生成模块,用于根据所述数据查询语句,生成携带有查询关键词的树形结构数据;a generating module, configured to generate tree-structured data carrying query keywords according to the data query statement;

查询模块,用于针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据;A query module, for each database to be queried, according to the query type of the database and the tree structure data, generate a retrieval formula corresponding to the database, and retrieve the database according to the retrieval formula to obtain the data query query data corresponding to the statement;

返回模块,用于将所述数据查询语句对应的查询数据返回给所述用户。The returning module is configured to return the query data corresponding to the data query statement to the user.

根据本发明的第三方面,提供了一种基于结构化查询语言的数据查询设备,包括基于结构化查询语言的数据查询装置;或者,According to a third aspect of the present invention, a structured query language-based data query device is provided, including a structured query language-based data query device; or,

所述设备包括:处理器和存储器;The device includes: a processor and a memory;

所述存储器用于存储可执行的指令,所述指令用于控制所述处理器执行根据第一方面中任一项所述的方法。The memory is used to store executable instructions for controlling the processor to perform the method according to any one of the first aspects.

根据本发明的第三方面,提供了一种计算机存储介质,所述存储介质存储有计算机指令,当所述存储介质中的计算机指令由处理器执行时,实现如第一方面中任一项所述的方法。According to a third aspect of the present invention, there is provided a computer storage medium, where computer instructions are stored in the storage medium, and when the computer instructions in the storage medium are executed by a processor, any one of the first aspect can be implemented. method described.

本发明的有益效果是:通过结构化查询语言构建的搜索方式,可以使用户能够在文本文档内根据自己的搜索需求,灵活设计复杂的数据查询语句,大大提高了搜索方式的灵活性。The beneficial effects of the present invention are: the search mode constructed by the structured query language can enable users to flexibly design complex data query sentences in the text document according to their own search requirements, thereby greatly improving the flexibility of the search mode.

附图说明Description of drawings

被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.

图1为本发明实施例提供的一种基于结构化查询语言的数据查询方法的流程图;1 is a flowchart of a data query method based on a structured query language provided by an embodiment of the present invention;

图2为本发明实施例提供的一种基于结构化查询语言的数据查询装置的结构示意图;2 is a schematic structural diagram of a data query device based on a structured query language provided by an embodiment of the present invention;

图3为本发明实施例提供的一种基于结构化查询语言的数据查询设备的结构示意图。FIG. 3 is a schematic structural diagram of a data query device based on a structured query language provided by an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。The principles and features of the present invention will be described below with reference to the accompanying drawings. The examples are only used to explain the present invention, but not to limit the scope of the present invention.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods, and apparatus should be considered part of the specification.

在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。In all examples shown and discussed herein, any specific values should be construed as illustrative only and not limiting. Accordingly, other instances of the exemplary embodiment may have different values.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further discussion in subsequent figures.

<方法实施例><Method Example>

本发明实施例提供一种基于结构化查询语言的数据查询方法,如图1所示,具体步骤如下:An embodiment of the present invention provides a data query method based on a structured query language, as shown in FIG. 1 , and the specific steps are as follows:

S101:接收用户在文本文档内输入的数据查询语句。S101: Receive a data query statement input by a user in a text document.

在本发明实施例中,用户在数据库内查询所需数据的过程中,不再使用设置有多个搜索条件不同的搜索栏的交互界面,而是直接打开空白的文本文档,并在文本文档内输入数据查询语句。In the embodiment of the present invention, in the process of querying the required data in the database, the user no longer uses the interactive interface provided with multiple search bars with different search conditions, but directly opens a blank text document and opens the text document in the text document. Enter the data query statement.

在此需要说明的是,数据查询语句所包括的数据字段是预先设计好的,可以是查询数据源的名称、显示的字段名称、过滤条件、排序规则或跳过最初的数据条数中的至少一个,另外,还可以根据实际情况在数据查询语句内添加其他数据字段。It should be noted here that the data fields included in the data query statement are pre-designed, which can be at least the name of the query data source, the displayed field name, filter conditions, sorting rules, or skipping the initial number of data items. One, in addition, you can also add other data fields in the data query statement according to the actual situation.

在此还需要说明的是,查询数据源的名称的字段名称为FROM;显示的字段名称的字段名称为SELECT;过滤条件的字段名称为WHERE;排序规则的字段名称为ORDERBY;跳过最初的数据条数的字段名称为SKIP。It should also be noted here that the field name of the name of the query data source is FROM; the field name of the displayed field name is SELECT; the field name of the filter condition is WHERE; the field name of the collation rule is ORDERBY; skip the initial data The field name of the number of bars is SKIP.

S102:根据所述数据查询语句,生成携带有查询关键词的树形结构数据。S102: Generate tree-structured data carrying query keywords according to the data query statement.

进一步的,由于在数据库查询所需数据时需要使用到查询关键词,因此,在本发明实施例中,在接收到用户输入的数据查询语句之后,需要根据所述数据查询语句,生成携带有查询关键词的树形结构数据。Further, since query keywords need to be used when querying the required data in the database, in this embodiment of the present invention, after receiving the data query statement input by the user, it is necessary to generate a query statement carrying a query according to the data query statement. Tree-structured data for keywords.

进一步的,由于查询关键词是基于数据查询语句而来的,因此,在本发明实施例中,根据所述数据查询语句,生成携带有查询关键词的树形结构数据的实施方式,具体可以对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词;将所述数据查询语句的查询关键词添加到树形结构中,生成携带有查询关键词的树形结构数据。Further, since the query keyword is based on the data query statement, in the embodiment of the present invention, according to the data query statement, the implementation manner of generating tree-structured data carrying the query keyword can specifically be The data query statement is semantically analyzed to determine the query keyword of the data query statement; the query keyword of the data query statement is added to the tree structure to generate tree structure data carrying the query keyword.

在此需要说明的是,针对对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词,本发明实施例提供了两种具体实施方式,如下所示:It should be noted here that, in order to perform semantic analysis on the data query statement and determine the query keywords of the data query statement, the embodiment of the present invention provides two specific implementation manners, as follows:

第一种实施方式:根据预设的词语列表,确定并提取所述数据查询语句内的关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本,根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。The first embodiment: determine and extract keywords in the data query statement according to a preset word list, and obtain a keyword list corresponding to the data query statement, wherein the keyword list includes keywords The name, the location information of the keyword, and the original text corresponding to the keyword, and the query keyword of the data query statement is determined according to the keyword list corresponding to the data query statement.

在此需要说明的是,词语列表是预先设定的,如,词语列表包括:FROM、SELECT、WHERE、ORDERBY和SKIP;根据预设的词语列表,确定并提取所述数据查询语句内的关键词具体是针对词语列表内记载的每个词语,在数据查询语句内逐一匹配,如果在数据查询语句内匹配到词语列表内的词语,则将该词语作为关键词,并记录下关键词的位置信息(即,关键词在数据查询语句内的位置)以及关键词对应的原始文本,如,假设数据查询语句为FROM:A-SELECT:B,词语列表包括:FROM和SELECT,针对词语列表内的FROM匹配到数据查询语句内的FROM,则记录下关键词的名称FROM,关键词的位置信息第0字节,关键词对应的原始文本A;针对词语列表内的SELECT匹配到数据查询语句内的SELECT,则记录下关键词的名称SELECT,关键词的位置信息第7字节,关键词对应的原始文本B,根据确定出的关键词的名称FROM,关键词的位置信息第0字节,关键词对应的原始文本A、关键词的名称SELECT,关键词的位置信息第7字节,关键词对应的原始文本B,生成关键词列表。It should be noted here that the word list is preset, for example, the word list includes: FROM, SELECT, WHERE, ORDERBY and SKIP; according to the preset word list, determine and extract the keywords in the data query statement Specifically, for each word recorded in the word list, match one by one in the data query statement. If the word in the word list is matched in the data query statement, the word is used as a keyword, and the location information of the keyword is recorded. (that is, the position of the keyword in the data query statement) and the original text corresponding to the keyword. For example, if the data query statement is FROM:A-SELECT:B, the word list includes: FROM and SELECT. For the FROM in the word list If it matches FROM in the data query statement, record the name of the keyword FROM, the 0th byte of the position information of the keyword, and the original text A corresponding to the keyword; match the SELECT in the word list to the SELECT in the data query statement , then record the name of the keyword SELECT, the 7th byte of the position information of the keyword, the original text B corresponding to the keyword, according to the determined name of the keyword FROM, the 0th byte of the position information of the keyword, the keyword The corresponding original text A, the name of the keyword SELECT, the 7th byte of the position information of the keyword, and the original text B corresponding to the keyword, generate a keyword list.

第二种实施方式:获取所述词语序列中指定词性的词语;将获取到的词语作为关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本;根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。The second embodiment: acquire words with a specified part of speech in the word sequence; use the acquired words as keywords to obtain a keyword list corresponding to the data query statement, wherein the keyword list includes keywords. The name, the location information of the keyword, and the original text corresponding to the keyword; the query keyword of the data query statement is determined according to the keyword list corresponding to the data query statement.

在此需要说明的是,指定词性可以是谓词词性,也可以是名词词性,还可以是形容词词性。It should be noted here that the specified part of speech may be a predicate part of speech, a noun part of speech, or an adjective part of speech.

例如,假设指定的词性为谓词词性,数据查询语句为FROM:A-SELECT:B,获取词语序列中谓词词性的词语为FROM和SELECT,则将为FROM均作为关键词,记录下关键词的名称FROM,关键词的位置信息第0字节,关键词对应的原始文本A;将SELECT作为关键词,记录下关键词的名称SELECT,关键词的位置信息第7字节,关键词对应的原始文本B,根据确定出的关键词的名称FROM,关键词的位置信息第0字节,关键词对应的原始文本A、关键词的名称SELECT,关键词的位置信息第7字节,关键词对应的原始文本B,生成关键词列表。For example, assuming that the specified part of speech is the predicate part of speech, the data query statement is FROM: A-SELECT: B, and the predicated words in the word sequence are FROM and SELECT, then both FROM will be used as the keyword, and the name of the keyword will be recorded. FROM, the 0th byte of the position information of the keyword, the original text A corresponding to the keyword; using SELECT as the keyword, record the name of the keyword SELECT, the 7th byte of the position information of the keyword, the original text corresponding to the keyword B, according to the determined keyword name FROM, the 0th byte of the keyword position information, the original text A corresponding to the keyword, the name SELECT of the keyword, the 7th byte of the keyword position information, the corresponding keyword Original text B, generate a keyword list.

在此还需要说明的是,无论第一种实施方式还是第二种实施方式,只要是无法识别的关键词,可以均返回错误信息并终止此次操作。It should also be noted here that, regardless of the first embodiment or the second embodiment, as long as it is an unrecognized keyword, an error message can be returned and the operation can be terminated.

另外,由于关键词是要输入到数据库内进行查询的,也就是说关键词列表内的关键词必须要符合数据库的语法结构,因此,在本发明实施例中,上述两种实施方式提到的根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词具体可以是,对所述数据查询语句对应的关键词列表内的每个关键词进行语法分析,确定每个关键词是否符合语法结构;将符合语法结构的关键词确定为所述数据查询语句的查询关键词。In addition, since the keywords are to be input into the database for query, that is to say, the keywords in the keyword list must conform to the grammatical structure of the database. Determining the query keywords of the data query statement according to the keyword list corresponding to the data query statement may specifically be: performing grammatical analysis on each keyword in the keyword list corresponding to the data query statement, and determining each keyword Whether the keyword conforms to the grammatical structure; the keyword that conforms to the grammatical structure is determined as the query keyword of the data query statement.

在此需要说明的是,对于关键词列表内不符合语法结构的关键词,可以返回错误信息并终止此次操作。It should be noted here that, for keywords that do not conform to the grammatical structure in the keyword list, an error message can be returned and the operation can be terminated.

S103:针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据。S103: For each database to be queried, generate a retrieval formula corresponding to the database according to the query type of the database and the tree structure data, and retrieve the database according to the retrieval formula, and obtain the corresponding data query statement. Query data.

进一步的,由于虽然树形结构数据内的查询关键词均符合语法结构,但是不同类型的数据库的检索方式存在差异,也就是不同类型的数据库所使用的检索式存在差异,因此,在本发明实施例中,需要针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据,这样每种类型的数据库都会按照该数据库的查询类型和树形结构数据生成符合自己数据库查询规则的检索式,从而查询到用户所需的数据。Further, although the query keywords in the tree-structured data all conform to the grammatical structure, the retrieval methods of different types of databases are different, that is, the retrieval formulas used by different types of databases are different. Therefore, in the implementation of the present invention, In an example, it is necessary to generate a retrieval formula corresponding to the database according to the query type of the database and the tree structure data for each database to be queried, and retrieve the database according to the retrieval formula to obtain the data query statement. Corresponding query data, so that each type of database will generate a retrieval formula that conforms to its own database query rules according to the query type and tree structure data of the database, so as to query the data required by the user.

在此需要说明的是,所生成的检索式仅包含在此阶段能够确定的数据,对于一部分在查询执行的时候才能确定的数据,可以保留对这些数据的获取方式,等待查询运行的阶段填充。It should be noted here that the generated retrieval formula only contains the data that can be determined at this stage. For some data that can be determined only when the query is executed, the acquisition method of these data can be reserved and wait for the query to be filled in the running stage.

S104:将所述数据查询语句对应的查询数据返回给所述用户。S104: Return the query data corresponding to the data query statement to the user.

进一步的,将每个数据库内查询到的数据查询语句对应的查询数据均返回给用户。Further, the query data corresponding to the data query statement queried in each database is returned to the user.

通过上述方法,通过结构化查询语言构建的搜索方式,可以使用户能够在文本文档内根据自己的搜索需求,灵活设计复杂的数据查询语句,大大提高了搜索方式的灵活性。Through the above method, the search method constructed by the structured query language can enable users to flexibly design complex data query sentences in the text document according to their own search requirements, which greatly improves the flexibility of the search method.

<装置实施例><Apparatus Example>

如图2所示,本发明实施例还提供了一种基于结构化查询语言的数据查询装置,包括:As shown in FIG. 2 , an embodiment of the present invention also provides a data query device based on a structured query language, including:

接收模块201,用于接收用户在文本文档内输入的数据查询语句;A receiving module 201, configured to receive a data query statement input by a user in a text document;

生成模块202,用于根据所述数据查询语句,生成携带有查询关键词的树形结构数据;A generating module 202, configured to generate tree-structured data carrying query keywords according to the data query statement;

查询模块203,用于针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据;The query module 203 is configured to, for each database to be queried, generate a retrieval formula corresponding to the database according to the query type of the database and the tree structure data, and retrieve the database according to the retrieval formula to obtain the data The query data corresponding to the query statement;

返回模块204,用于将所述数据查询语句对应的查询数据返回给所述用户。Returning module 204, configured to return the query data corresponding to the data query statement to the user.

所述数据查询语句包括:查询数据源的名称、显示的字段名称、过滤条件、排序规则或跳过最初的数据条数中的至少一个。The data query statement includes: at least one of the name of the query data source, the displayed field name, filter conditions, sorting rules or skipping the initial number of data items.

所述生成模块202具体用于,对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词;将所述数据查询语句的查询关键词添加到树形结构中,生成携带有查询关键词的树形结构数据。The generating module 202 is specifically configured to perform semantic analysis on the data query statement, and determine the query keyword of the data query statement; add the query keyword of the data query statement to the tree structure, and generate a query keyword carrying the data query statement. Tree-structured data for query keywords.

所述生成模块202还用于,根据预设的词语列表,确定并提取所述数据查询语句内的关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本;根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。The generating module 202 is further configured to, according to a preset word list, determine and extract keywords in the data query statement, and obtain a keyword list corresponding to the data query statement, wherein the keyword list includes: The name of the keyword, the position information of the keyword, and the original text corresponding to the keyword; the query keyword of the data query statement is determined according to the keyword list corresponding to the data query statement.

所述生成模块202还用于,对所述数据查询语句进行切词处理,得到词语序列;获取所述词语序列中指定词性的词语;将获取到的词语作为关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本;根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。The generating module 202 is further configured to perform word segmentation processing on the data query statement to obtain a word sequence; obtain words with a specified part of speech in the word sequence; and use the obtained word as a keyword to obtain the data query statement A corresponding keyword list, wherein the keyword list includes the name of the keyword, the location information of the keyword, and the original text corresponding to the keyword; according to the keyword list corresponding to the data query statement, determine the data query The query keyword of the statement.

所述生成模块202还用于,对所述数据查询语句对应的关键词列表内的每个关键词进行语法分析,确定每个关键词是否符合语法结构;将符合语法结构的关键词确定为所述数据查询语句的查询关键词。The generating module 202 is further configured to perform grammatical analysis on each keyword in the keyword list corresponding to the data query statement to determine whether each keyword conforms to the grammatical structure; The query keyword of the data query statement.

所述查询关键词的词性为谓词词性。The part of speech of the query keyword is a predicate part of speech.

<设备实施例><Apparatus Example>

本发明实施例还提供了一种基于结构化查询语言的数据查询设备,如图3所示,该基于结构化查询语言的数据查询设备包括上述装置实施例中的基于结构化查询语言的数据查询装置。An embodiment of the present invention further provides a data query device based on structured query language. As shown in FIG. 3 , the data query device based on structured query language includes the data query based on structured query language in the above device embodiments device.

或者,该基于结构化查询语言的数据查询设备包括存储器301和处理器302。其中,存储器用于存储可执行的指令,所述指令用于控制所述处理器执行根据上述方法实施例中任一项所述的方法。Alternatively, the structured query language-based data query device includes a memory 301 and a processor 302 . The memory is used to store executable instructions, and the instructions are used to control the processor to execute the method according to any one of the foregoing method embodiments.

<计算机存储介质><Computer storage medium>

本发明还提供一种计算机存储介质,所述存储介质存储有计算机指令,当所述存储介质中的计算机指令由处理器执行时,实现如上述方法实施例中任一项所述的方法。The present invention further provides a computer storage medium, the storage medium stores computer instructions, and when the computer instructions in the storage medium are executed by a processor, the method according to any one of the above method embodiments is implemented.

本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present invention.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本发明操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。The computer program instructions for carrying out the operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code, written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present invention.

这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation in hardware, implementation in software, and implementation in a combination of software and hardware are all equivalent.

以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本发明的范围由所附权利要求来限定。Various embodiments of the present invention have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (10)

1.一种基于结构化查询语言的数据查询方法,其特征在于,包括:1. a data query method based on structured query language, is characterized in that, comprises: 接收用户在文本文档内输入的数据查询语句;Receive the data query statement entered by the user in the text document; 根据所述数据查询语句,生成携带有查询关键词的树形结构数据;generating tree-structured data carrying query keywords according to the data query statement; 针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据;For each database to be queried, a retrieval formula corresponding to the database is generated according to the query type of the database and the tree structure data, and the database is retrieved according to the retrieval formula to obtain query data corresponding to the data query statement ; 将所述数据查询语句对应的查询数据返回给所述用户。The query data corresponding to the data query statement is returned to the user. 2.根据权利要求1所述的方法,其特征在于,所述数据查询语句包括:查询数据源的名称、显示的字段名称、过滤条件、排序规则或跳过最初的数据条数中的至少一个。2. The method according to claim 1, wherein the data query statement comprises: at least one of the name of the query data source, the displayed field name, filter conditions, sorting rules or skipping the initial number of data pieces . 3.根据权利要求1所述的方法,其特征在于,根据所述数据查询语句,生成携带有查询关键词的树形结构数据,包括:3. The method according to claim 1, wherein, according to the data query statement, generating tree-structured data carrying query keywords, comprising: 对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词;Semantic analysis is performed on the data query statement to determine the query keywords of the data query statement; 将所述数据查询语句的查询关键词添加到树形结构中,生成携带有查询关键词的树形结构数据。The query keywords of the data query statement are added to the tree structure to generate tree structure data carrying the query keywords. 4.根据权利要求3所述的方法,其特征在于,对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词,包括:4. The method according to claim 3, characterized in that, performing semantic analysis on the data query statement to determine query keywords of the data query statement, comprising: 根据预设的词语列表,确定并提取所述数据查询语句内的关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本;According to the preset word list, determine and extract the keywords in the data query statement to obtain a keyword list corresponding to the data query statement, wherein the keyword list includes the name of the keyword and the position of the keyword information and the original text corresponding to the keyword; 根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。According to the keyword list corresponding to the data query statement, the query keyword of the data query statement is determined. 5.根据权利要求3所述的方法,其特征在于,对所述数据查询语句进行语义分析,确定所述数据查询语句的查询关键词,包括:5. The method according to claim 3, characterized in that, performing semantic analysis on the data query statement to determine query keywords of the data query statement, comprising: 对所述数据查询语句进行切词处理,得到词语序列;Perform word segmentation processing on the data query statement to obtain a word sequence; 获取所述词语序列中指定词性的词语;Obtain the words of the specified part of speech in the word sequence; 将获取到的词语作为关键词,得到所述数据查询语句对应的关键词列表,其中,所述关键词列表内包括关键词的名称、关键词的位置信息以及关键词对应的原始文本;Using the acquired words as keywords, a keyword list corresponding to the data query statement is obtained, wherein the keyword list includes the name of the keyword, the location information of the keyword, and the original text corresponding to the keyword; 根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词。According to the keyword list corresponding to the data query statement, the query keyword of the data query statement is determined. 6.根据权利要求4或5所述的方法,其特征在于,根据所述数据查询语句对应的关键词列表,确定所述数据查询语句的查询关键词,包括:6. The method according to claim 4 or 5, wherein determining the query keywords of the data query statement according to a keyword list corresponding to the data query statement, comprising: 对所述数据查询语句对应的关键词列表内的每个关键词进行语法分析,确定每个关键词是否符合语法结构;Syntactic analysis is performed on each keyword in the keyword list corresponding to the data query statement to determine whether each keyword conforms to the grammatical structure; 将符合语法结构的关键词确定为所述数据查询语句的查询关键词。A keyword that conforms to the grammatical structure is determined as the query keyword of the data query statement. 7.根据权利要求6所述的方法,其特征在于,所述查询关键词的词性为谓词词性。7. The method according to claim 6, wherein the part of speech of the query keyword is a part of speech of a predicate. 8.一种基于结构化查询语言的数据查询装置,其特征在于,包括:8. A data query device based on structured query language, characterized in that, comprising: 接收模块,用于接收用户在文本文档内输入的数据查询语句;The receiving module is used to receive the data query statement input by the user in the text document; 生成模块,用于根据所述数据查询语句,生成携带有查询关键词的树形结构数据;a generating module, configured to generate tree-structured data carrying query keywords according to the data query statement; 查询模块,用于针对每个待查询的数据库,根据该数据库的查询类型和所述树形结构数据,生成该数据库对应的检索式,并根据所述检索式检索该数据库,获得所述数据查询语句对应的查询数据;A query module, for each database to be queried, according to the query type of the database and the tree structure data, generate a retrieval formula corresponding to the database, and retrieve the database according to the retrieval formula to obtain the data query query data corresponding to the statement; 返回模块,用于将所述数据查询语句对应的查询数据返回给所述用户。The returning module is configured to return the query data corresponding to the data query statement to the user. 9.一种基于结构化查询语言的数据查询设备,包括权利要求8所述的基于结构化查询语言的数据查询装置;或者,9. A structured query language-based data query device, comprising the structured query language-based data query device of claim 8; or, 所述设备包括:处理器和存储器;The device includes: a processor and a memory; 所述存储器用于存储可执行的指令,所述指令用于控制所述处理器执行根据权利要求1-7中任一项所述的方法。The memory is used to store executable instructions for controlling the processor to perform the method according to any one of claims 1-7. 10.一种计算机存储介质,所述存储介质存储有计算机指令,当所述存储介质中的计算机指令由处理器执行时,实现如权利要求1-7任一项所述的方法。10. A computer storage medium storing computer instructions, when the computer instructions in the storage medium are executed by a processor, the method according to any one of claims 1-7 is implemented.
CN202111091779.9A 2021-09-17 2021-09-17 Data query method, device, device and storage medium based on structured query language Pending CN113868375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111091779.9A CN113868375A (en) 2021-09-17 2021-09-17 Data query method, device, device and storage medium based on structured query language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111091779.9A CN113868375A (en) 2021-09-17 2021-09-17 Data query method, device, device and storage medium based on structured query language

Publications (1)

Publication Number Publication Date
CN113868375A true CN113868375A (en) 2021-12-31

Family

ID=78996426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111091779.9A Pending CN113868375A (en) 2021-09-17 2021-09-17 Data query method, device, device and storage medium based on structured query language

Country Status (1)

Country Link
CN (1) CN113868375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114547085A (en) * 2022-03-22 2022-05-27 中国铁塔股份有限公司 Data processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080077570A1 (en) * 2004-10-25 2008-03-27 Infovell, Inc. Full Text Query and Search Systems and Method of Use
CN103092970A (en) * 2013-01-24 2013-05-08 华为技术有限公司 Database operation method and device
CN109670033A (en) * 2019-02-01 2019-04-23 青岛海信电器股份有限公司 Search method, device, equipment and the storage medium of content
CN110633292A (en) * 2019-09-19 2019-12-31 上海依图网络科技有限公司 Query method, device, medium, equipment and system for heterogeneous database
CN111708805A (en) * 2020-06-18 2020-09-25 腾讯科技(深圳)有限公司 Data query method, device, electronic device and storage medium
CN112506951A (en) * 2020-12-07 2021-03-16 海南车智易通信息技术有限公司 Processing method, server, computing device and system for database slow query log

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080077570A1 (en) * 2004-10-25 2008-03-27 Infovell, Inc. Full Text Query and Search Systems and Method of Use
CN103092970A (en) * 2013-01-24 2013-05-08 华为技术有限公司 Database operation method and device
CN109670033A (en) * 2019-02-01 2019-04-23 青岛海信电器股份有限公司 Search method, device, equipment and the storage medium of content
CN110633292A (en) * 2019-09-19 2019-12-31 上海依图网络科技有限公司 Query method, device, medium, equipment and system for heterogeneous database
CN111708805A (en) * 2020-06-18 2020-09-25 腾讯科技(深圳)有限公司 Data query method, device, electronic device and storage medium
CN112506951A (en) * 2020-12-07 2021-03-16 海南车智易通信息技术有限公司 Processing method, server, computing device and system for database slow query log

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114547085A (en) * 2022-03-22 2022-05-27 中国铁塔股份有限公司 Data processing method and device, electronic equipment and storage medium
CN114547085B (en) * 2022-03-22 2023-05-05 中国铁塔股份有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10360308B2 (en) Automated ontology building
US10169471B2 (en) Generating and executing query language statements from natural language
US10339924B2 (en) Processing speech to text queries by optimizing conversion of speech queries to text
US10558754B2 (en) Method and system for automating training of named entity recognition in natural language processing
US10585924B2 (en) Processing natural-language documents and queries
US9495387B2 (en) Images for a question answering system
US11222053B2 (en) Searching multilingual documents based on document structure extraction
US11269942B2 (en) Automatic keyphrase extraction from text using the cross-entropy method
US10747795B2 (en) Cognitive retrieve and rank search improvements using natural language for product attributes
JP2023507286A (en) Automatic creation of schema annotation files for converting natural language queries to structured query language
US10606903B2 (en) Multi-dimensional query based extraction of polarity-aware content
US10360280B2 (en) Self-building smart encyclopedia
CA2809021A1 (en) Systems and methods for lexicon generation
US11868378B2 (en) Creation of indexes for information retrieval
CN113868375A (en) Data query method, device, device and storage medium based on structured query language
CN107220249B (en) Classification-based full-text search
KR102519955B1 (en) Apparatus and method for extracting of topic keyword
JP2001101184A (en) Method and device for generating structurized document and storage medium with structurized document generation program stored therein
US20060248037A1 (en) Annotation of inverted list text indexes using search queries
CN111723211B (en) Information processing method, device, electronic device and computer storage medium
Mukhamedshin et al. Complex Search Queries in the Corpus Management System
CN108228648B (en) Method and device for creating index
CN102456006A (en) Search system and search method for screening similar words according to word categories

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination