序列号 [英] Serial number

查看:169
本文介绍了序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何生成可以存储在数据库中的14位序列号,并且每次按下附加按钮时都会自动添加一个数字,该数字类似于不带电卡的电信卡的序列号重复.
谢谢您的配合.

I''d like to know how to generate serial number of 14 digits that can be stored in database and everytime a number is automatically added when the additional button is pressed.And that number is similar to serial numbers of telecommunication cards without repeating.
thank you for your cooperation.

推荐答案

最简单的方法是创建一个GUID并截断它.
The easiest way of doing this is to create a GUID and truncate it.


这篇关于序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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