您的位置:首页 > 博客中心 > 数据库 >

sqlserver中GUID的默认值设置

时间:2022-03-14 15:55

sqlserver中GUID的默认值设置

YID             uniqueidentifier     not null default (NEWSEQUENTIALID()),  //有序GUID(只能用于表设计的时候的默认值,不能用于赋值)
YID             uniqueidentifier     not null default (NEWID()),  //无序GUID

本类排行

今日推荐

热门手游