什么是GUID,我该如何使用? [英] what is guid and how i can use?

查看:212
本文介绍了什么是GUID,我该如何使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

什么是guid?
以及我如何在我们的应用程序(webapplication)中使用

hello friends

what is guid??
and how i can use in our application(webapplication)

推荐答案

Guid是全局唯一标识符或16字节值,保证在任何地方都是唯一的. br/>
Guid主要用于身份"列或值.这样就节省了往返数据库的时间,因为您已经知道ID,而不必等待数据库告诉您插入的主键值是什么.
Guid is a globally unique identifier or a 16 byte value which is guaranteed to be unique everywhere.

Guid''s are mostly used for "identity" columns or values. This saves a round trip to the database as you already know the ID and don''t have to wait for the database to tell you what the primary key value was for your insert.


A Guid是一个全球唯一标识符-这意味着它是一个非常非常非常不可能在您的一生中重复的数字,更不用说应用程序了.其中有用于数据库ID,设备ID,软件ID的位置-您想在其中唯一标识某事实例的任何地方.

Wiki: http://en.wikipedia.org/wiki/Globally_unique_identifier [
A Guid is a Global Unique Identifier - which means it is a number that it is very, very very unlikely will be duplicated in your lifetime, let alone application. There are used for Database Id, device Id, software Id - anywahere where you want to uniquely identify an instance of something.

Wiki: http://en.wikipedia.org/wiki/Globally_unique_identifier[^]




检查此-

http://msdn.microsoft.com/en-us/library/system.guid.aspx [^ ]
Hi,

Check this-

http://msdn.microsoft.com/en-us/library/system.guid.aspx[^]


这篇关于什么是GUID,我该如何使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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