Method and device for creating indexes of database
A technology of index establishment and establishment method, applied in the field of information retrieval, can solve the problems of wrong index and low index efficiency, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] like figure 1 As shown, it is a schematic flowchart of a method for establishing a database index in Embodiment 1 of the present application, and the method includes the following steps:
[0052] Step 101: Determine N logical operators representing or relation in the query statement, where N is a positive integer.
[0053] The query statement can reflect the query condition on which the index is built, and may specifically be an SQL query statement. At the same time, the query statement in the embodiment of the present application contains logical operators representing or relational, and may also contain symbols capable of changing the operation priority of the logical operator. However, when including symbols that can change the operation priority of the logical operator, This symbol shall not change the operation order of each logical operator in the query statement. Specifically, the logical operator representing or relation may be a logical operator such as or, a...
Embodiment 2
[0097] Embodiment 2 of the present application uses specific examples to describe in detail the database index establishment method described in Embodiment 1.
[0098] Still taking the established testTable database table as an example, if the query conditions for the testTable database table are more complicated, it is to search the name from the testTable database table for "Zhang San", age is "19" and gender is "male", Or the data field whose identity number is "10010", or whose height is "180" and whose weight is "70kg" and whose nationality is "Chinese", or whose education level is "Undergraduate", the expression form of the SQL query statement is: select* from testTable where name='Zhang San'and age='19'andsex='Male'or identity='10010'or height='180'and weight='70'and nationality='China'or educationlevel='Undergraduate' , then according to the query condition in the query statement "name='Zhang San' and age='19' and sex='male' or identity='10010' or height='180' and weig...
Embodiment 3
[0125] like Figure 7 As shown, it is a schematic structural diagram of the database index establishment device described in Embodiment 3 of the present application, and the database index establishment device includes a first determination module 11, a first conversion module 12 and an index establishment module 13:
[0126] The first determining module 11 is used to determine N logical operators representing or relational in the query statement, where N is a positive integer.
[0127]Specifically, the query statement may be an SQL query statement, which can reflect the query condition on which the index is built. At the same time, the query statement in the embodiment of the present application contains logical operators representing or relational, and may also contain symbols capable of changing the operation priority of the logical operator. However, when including symbols that can change the operation priority of the logical operator, This symbol shall not change the ope...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com