Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for generating identification code

A technology for generating systems and identification codes, applied in the field of identification code processing, can solve the problems of difficulty in ensuring ID uniqueness and low operating efficiency, and achieve the effect of reducing the number of bytes, saving storage space, and ensuring efficiency

Active Publication Date: 2011-02-16
YONYOU NETWORK TECH
View PDF3 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The advantage of this method is that the length of the generated ID is controllable. The disadvantage is that it is difficult to guarantee the uniqueness of the generated ID in the entire system, especially in a distributed system. It usually needs to consider some relevant information when running, and the operating efficiency is often low.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for generating identification code
  • Method and system for generating identification code
  • Method and system for generating identification code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0022] In the following description, many specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, therefore, the present invention is not limited to the specific embodiments disclosed below limit.

[0023] figure 1 is a flowchart of an identification code generation method according to an embodiment of the present invention. Such as figure 1 As shown, the method for generating an identification code according to an embodiment of the present invention includes: step S102, generating a first character string of a first length according to a general algorithm of a universal unique identification c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for generating an identification code. The method comprises the following steps of: (S104) generating a first character string with a first length according to a universal algorithm of a universal unique identification code; (S104) removing a linking character in the first character string and changing the first character string with the first length into a second character string with a second length; and (S106) grouping and compressing characters in the second character string with the second length, and splicing the compressed characters to generate a third character string with a third length, wherein the third character string is an identification code. The invention also provides an identification code generation system. According to the technical scheme, the identification code generation system and the method can be realized, which not only can guarantee that the identification code generated in a distributed system has uniqueness, but also can effectively reduce the byte number occupied by the identification code so as to save the storage space and guarantee the data storage efficiency, and too much network flow cannot be increased.

Description

technical field [0001] The invention relates to identification code processing technology, in particular to an identification code generation method and system. Background technique [0002] In a software system based on relational database technology, usually, each data table needs to use an ID to uniquely identify a row of records. For example, each production order in an ERP system will have a unique identifier. [0003] There are two main types of methods for generating unique IDs in the system in software products currently on the market: [0004] (1) UUID (Universally Unique Identifier) ​​is used to generate a globally unique identification code. The advantage of this method is that there are already public algorithms, and many advanced development languages ​​themselves have provided corresponding toolkits, which can ensure that IDs generated in a distributed environment are unique and have relatively high operating efficiency. The disadvantage is that UUID is compo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
Inventor 王云波
Owner YONYOU NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products