如何使用固定长度每次生成唯一代码 [英] how to generate unique code every time with fixed length

查看:79
本文介绍了如何使用固定长度每次生成唯一代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我的条形码系列从RU000001开始(具有固定长度)并且我确信一次将达到最大RU999999,因此系统如何生成另一个系列而不改变RU和长度。

你有什么想法......?我们怎样才能解决这个问题。

谢谢/ rita

hi my barcode series start from RU000001(has fixed length) and iam sure that one time will come it will reach max RU999999, so how system can generated another series without changing RU as well length.
do u have any idea...?? how can we resolve this.
thanks/rita

推荐答案

如果你使用了RU000001和RU999999之间的所有值而你不能更改长度或RU前缀,然后您唯一的选择是使用其他字符代替数字:

RUA00001到RUA99999,然后是RUB00001,依此类推。

转到RUZ99999,然后转到RUAA0001,依此类推。
If you have used all the values between RU000001 and RU999999 and you can't change the length, or the RU prefix, then your only alternatives are to use other characters in place of the digits:
RUA00001 to RUA99999, then RUB00001, and so forth.
Get to RUZ99999 and you move to RUAA0001, and so on.


这篇关于如何使用固定长度每次生成唯一代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆