sqlserver中GUID的默认值设置
YID uniqueidentifier not null default (NEWSEQUENTIALID()), //有序GUID(只能用于表设计的时候的默认值,不能用于赋值)
YID uniqueidentifier not null default (NEWID()), //无序GUID
本文共 203 字,大约阅读时间需要 1 分钟。
sqlserver中GUID的默认值设置
YID uniqueidentifier not null default (NEWSEQUENTIALID()), //有序GUID(只能用于表设计的时候的默认值,不能用于赋值)
YID uniqueidentifier not null default (NEWID()), //无序GUID
转载地址:http://xsvhl.baihongyu.com/