我的一个表包含一个自动编号字段 ShiftPk ,我将其用作该表的主键,但是当我将值插入记录时,生成的主键不是顺序的
我知道自动编号不必总是按顺序排列,但我所有其他自动编号都按顺序工作请在下面找到我的脚本,如果我有任何问题,请提供建议
****** Object: Table [dbo].[ShiftMasterNew_tbl] Script Date: 03/09/2013 13:21:13 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ShiftMasterNew_tbl](
[ShiftPK] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
[ShiftName] [varchar](50) NOT NULL,
[Duration] [numeric](18, 0) NULL,
CONSTRAINT [PK_ShiftMasterNew_tbl] PRIMARY KEY CLUSTERED
(
[ShiftPK] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [IX_ShiftMasterNew_tbl] UNIQUE NONCLUSTERED
(
[ShiftName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
是什么让这个表自动编号与其他的不同