Database insertion sorting method
An insertion sorting and database technology, applied in the field of database sorting, can solve the problems of cumbersome insertion sorting operations, and achieve the effect of reducing operation steps and improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0013] Such as figure 1 As shown, embodiment 1 of the present invention provides a kind of database insertion sorting method, comprises the following steps:
[0014] Step S1, update the sorting number of the sorting field according to the size of the sorting number to be a continuous sequence number starting from 1;
[0015] Step S2, expanding all the sequence numbers by N times, where N is an integer greater than or equal to 2;
[0016] Step S3, obtain the sequence number of the data to be inserted and the reference data according to the unique key values of the data to be inserted and the reference data, and if it is necessary to move the data to be inserted forward, modify the sequence number of the data to be inserted to the Subtract M from the sequence number of the reference data; if the data to be inserted needs to be moved backward, modify the sequence number of the data to be inserted to the sequence number of the reference data plus M; M is an integer greater than...
Embodiment 2
[0039] Embodiment 2 of the present invention provides a computer storage medium on which a computer program is stored. When the computer storage medium is executed by a processor, the database insertion sorting method described in any of the above embodiments is implemented.
[0040] The computer storage medium provided by the present invention is used to implement the above-mentioned database insertion sorting method. Therefore, the technical effects of the above-mentioned database insertion sorting method are also provided by the computer storage medium, and will not be repeated here.
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