Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此处输入图像描述我在我的数据库中使用 uniqueidentifier 列,默认值为 newid() 我将其更改为 NEWSEQUENTIALID() 我如何更改它的起始值以增加最后一个
您不能为 newsequentialid() 设置初始值,请参见下面的示例
create table t3 (id uniqueidentifier default newsequentialid(), idnum int) insert into t3(id,idnum) values (newid(),10) insert into t3(idnum) values (11),(12) select * from t3
即使您设置了不同的唯一标识符,它也不会继续。