41
SQL Server 2008:Compound chiave primaria nella tabella di tipo variabile
DECLARE @MyTable TABLE(
PersonID INT NOT NULL,
Person2ID INT NOT NULL,
Description NVARCHAR(100),
CONSTRAINT PK PRIMARY KEY CLUSTERED (PersonID, Person2ID)
);
Dà:
Msg 156, Level 15, State 1, Line 5
Incorrect syntax near the keyword 'CONSTRAINT'.
C'è un modo per avere composto chiave primaria nella tabella delle variabili di valore?