Method and device for generating serial numbers
A serial number, serial number generation technology, applied in the computer field, can solve the problem of lack of acquisition sequence, inability to know the data serial number, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] figure 2 It is a flowchart of a method for generating a serial number provided in Embodiment 1 of the present invention. Such as figure 2 As shown, the method includes the following steps S201-S205:
[0056] Step S201: According to the identifier of the data table where the current data is to be stored, the initial value of the serial number corresponding to the data table where the current data is to be stored, the step size and the last allocated serial number are obtained from the preset sequence table;
[0057] Step S202: Judging whether the data table where the current data is to be stored is the first input data, if yes, execute S203, otherwise execute S204;
[0058] Step S203: Use the initial value of the serial number corresponding to the data table where the current data is to be stored as the serial number of the current data, and record the serial number of the current data as the last allocated serial number corresponding to the data table where the curr...
Embodiment 2
[0064] image 3 It is a flowchart of a method for generating a serial number provided in Embodiment 2 of the present invention. Such as image 3 As shown, the method includes the following steps S301-S309:
[0065] Step S301: According to the identifier of the data table where the current data is to be stored, the initial value of the serial number corresponding to the data table where the current data is to be stored, the step size and the last allocated serial number are obtained from the preset sequence table;
[0066] Step S302: Determine whether the data table to be stored in the current data is the first input data, if yes, execute S303, otherwise execute S304;
[0067] Step S303: Use the initial value of the serial number corresponding to the data table where the current data is to be stored as the serial number of the current data, and record the serial number of the current data as the last allocated serial number corresponding to the data table where the current da...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 