Hi
i'm trying to add a primary key and set an index upon output.
My code is like this, but I get an syntax error. And I don't know how to correct it?
ALTER TABLE UNIFY_DK_POST_CH
ALTER COLUMN ID int NOT NULL;
ALTER TABLE UNIFY_DK_POST_CHUNIFY_DK_GLS_DE
ADD PRIMARY KEY (ID)
CREATE INDEX IX_ParcelNumberPurchase
ON dbo.UNIFY_DK_POST_CHUNIFY_DK_GLS_DE
(
ParcelNumberPurchase
)
GO