A method and device for establishing a database index
A technology for index establishment and establishment methods, which is applied in the field of information retrieval and can solve problems such as low index efficiency and index errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] Such as 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...
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* fromtestTablewherename='Zhang San'andage='19'andsex='male'oridentity='10010'orheight='180'andweight='70'andnationality='China'oreducationlevel='Undergraduate', then according to the query in the The query condition "name='Zhang San'andage='19'andsex='male'oridentity='10010'orheight='180'andweight='70'andnationality='Chi...
Embodiment 3
[0125] Such as 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...
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