Database record updating control method and device
A technology for updating data and control methods, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as reducing concurrency efficiency and deadlock, and achieve the effect of improving concurrency efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] See figure 1 , figure 1 This is a flowchart of a method for controlling updating database records provided by an embodiment of the present invention. Such as figure 1 As shown, the method includes:
[0048] Step S101, obtaining a pre-updated database record;
[0049] Specifically, a pre-updated database record is obtained through a select statement, and the select statement does not add a row-level lock.
[0050] Step S102, use the primary key to locate the database record;
[0051] Specifically, the primary key is field information that uniquely identifies a record in the Constraint database.
[0052] Step S103, update the first pre-update field, and control the version number of the database record in the memory to increase by one;
[0053] Step S104, in the process of updating the first pre-update field, when an update request for the second pre-update field is obtained, use the primary key to locate the database record;
[0054] Specifically, the second pre-update field is loc...
Embodiment 2
[0061] See figure 2 , figure 2 This is a flowchart of another control method for updating database records provided by an embodiment of the present invention. Such as figure 2 As shown, the method includes:
[0062] Step S201: Obtain a pre-updated database record;
[0063] Step S202, use the primary key to locate the database record;
[0064] Step S203: Search for the first pre-update field, obtain first update data input by the user and corresponding to the first pre-update field, and update the first pre-update field;
[0065] Specifically, the first pre-update field is located in the database record.
[0066] Step S204: Read the version number of the database record in the database, store the version number of the database record in the memory, and control the version number of the database record in the memory to increase by one;
[0067] Step S205, in the process of updating the first pre-update field, when an update request for the second pre-update field is obtained, use the p...
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