Control method and device for updating database records
A technology for updating data and control methods, applied in 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 It is a flowchart of a control method for 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 no row-level lock is added to the select statement.
[0050] Step S102, using 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, updating the first pre-update field, and adding 1 to the version number of the database record in the control memory;
[0053] Step S104, during 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...
Embodiment 2
[0061] see figure 2 , figure 2 It is a flow chart of another control method for updating database records provided by the embodiment of the present invention. Such as figure 2 As shown, the method includes:
[0062] Step S201, obtaining a pre-updated database record;
[0063] Step S202, using the primary key to locate the database record;
[0064] Step S203, searching for the first pre-update field, obtaining first update data input by the user corresponding to the first pre-update field, and updating 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 add 1;
[0067] Step S205, during the process of updating the first pre-update field, when an update request for the second pre-update field is ...
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