Method for generating major key field of database table and device thereof
A database and key field technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of inconvenient coding and long length of primary key fields, reducing database capacity, reducing the length of primary keys, and maintaining convenience. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0036] The embodiment of the present invention provides a method and device for generating a primary key field of a database table, which can not only maintain the convenience of GUID use, but also greatly reduce the length of the primary key, and effectively improve query and index performance. In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.
[0037] Such as figure 1 As shown, it is a flow chart of a method for generating a primary key field of a database table in Embodiment 1 of the present invention, and the method includes:
[0038] Step 101, obtaining the current maximum ID value;
[0039] It should be noted that the current maximum ID value can be pre-stored in the UID table in the database, or can be stored in other files, as long as the current maximum ID value can be obtained when it needs to be obt...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 