0
我有一個表,並有很多記錄,我不能刪除並重新創建它 我需要將Id列的增量值更改爲2舊值爲1我如何改變cloumn的隱藏價值
這是(1表中的一個例子,我需要改變的
CREATE TABLE [dbo].[RELATED](
[Id] [int] IDENTITY(1,1) NOT NULL,
[RELATEDDESC] [nvarchar](50) NOT NULL,
[USER_ID] [int] NULL,
[ALTER_DATE] [datetime2](7) NULL,
PRIMARY KEY CLUSTERED
(
[Id] 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
如何改變已增加1 2成爲ALTER TABLE未能做到這一點還是我不知道正確的語法它給我的錯誤身份 –
改變現有的表表[dbo] .RELATED ALTER COLUMN [Id] [int] IDENTITY(1,20)NOT NULL –