如何生成随机ID号 [英] How to Gnerate a Random ID Number

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

问题描述

我只是根据4位数字制作一个随机身份证号码 - 例如?


提前付款


Ch.Yallin

I just wana make a random id number based on4 digits-for examples??

Thanks in Advance

Ch.Yallin

推荐答案

" ch ********** @ yahoo.com" < ch ********** @ yahoo.comwrote in

新闻:11 ********************* @ k79g2000hse.googlegro ups.com:
"ch**********@yahoo.com" <ch**********@yahoo.comwrote in
news:11*********************@k79g2000hse.googlegro ups.com:

我只是根据4位数制作随机身份证号码 -

例子??


在此先感谢


Ch.Yallin

I just wana make a random id number based on4 digits-for
examples??

Thanks in Advance

Ch.Yallin



见关于rnd()函数的帮助文件。

-

Bob Quintal


PA是你我改变了我的电子邮件地址。


-

通过免费的Usenet帐户从 http://www.teranews.com

see the help files on the rnd() function.
--
Bob Quintal

PA is y I''ve altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com


ch ********** @ yahoo.com (ch**********@yahoo.com)写道:
ch**********@yahoo.com (ch**********@yahoo.com) writes:

我只是根据4位数字制作一个随机的身份证号码 - 例如?
I just wana make a random id number based on4 digits-for examples??



校验和(newid())优于rand()函数。

-

Erland Sommarskog,SQL Server MVP, es****@sommarskog.se


书籍在线获取SQL Server 2005
http://www.microsoft.com/technet/pro...ads/books.mspx

SQL Server 2000联机丛书
http://www.microsoft.com/sql/prodinf...ons/books。 mspx

checksum(newid()) is better than the rand() function.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


2007年6月9日星期六19:19:45 +0000(UTC),Erland Sommarskog写道:
On Sat, 9 Jun 2007 19:19:45 +0000 (UTC), Erland Sommarskog wrote:

> ch ********** @ yahoo.com(ch**********@yahoo.com)写道:
>ch**********@yahoo.com (ch**********@yahoo.com) writes:

>我只是根据4位数字制作一个随机ID号码 - 例如?
>I just wana make a random id number based on4 digits-for examples??


校验和(newid())优于rand()函数。


checksum(newid()) is better than the rand() function.



嗨Erland,



-

Hugo Kornelis,SQL Server MVP

我的SQL Server博客: http://sqlblog.com/blogs/hugo_kornelis


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

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