如何自己制作GUID [英] How to make GUID by own
本文介绍了如何自己制作GUID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一张表,其中我有id字段。我希望这个ID在GUID中生成。
我尝试了很多时间,它创建了32位GUID,但我想要10位数。
和前三位数将是asd,cvb等。
根据我的选择。有一个想法。
谢谢。
i have a table in which i have id field. i want this id to make in GUID.
i tried a lot of time ,it creats 32 bit GUID, but i want 10 digit.
and first three digit will be asd, cvb etc.
according my choice. have an idea.
Thanks.
推荐答案
Guid
是128位,如果您需要创建自己的ID,请参阅 http ://stackoverflow.com/questions/4779086/auto-increment-custom-id-in-database-table [ ^ ]
Guid
is 128 bits, if you need to create your own ID see this http://stackoverflow.com/questions/4779086/auto-increment-custom-id-in-database-table[^]
这篇关于如何自己制作GUID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文