sqlserver创建主键(uuid和自增长)

1、自增长

StudentNo int primary key identity(1,1)——bigint也是可以的

2、创建uuid

CustomerID uniqueidentifier primary key default newid()

猜你喜欢

转载自hbiao68.iteye.com/blog/1779822