|
Adds a constraint after a table is already created
Adiciona uma restrição depois que uma tabela já foi criada
The following SQL adds a constraint named "PK_Person" that is a PRIMARY KEY constraint on multiple columns (ID and LastName):
O seguinte SQL adiciona uma restrição chamada "PK_Person" que é uma restrição PRIMARY KEY em várias colunas (ID e LastName):
ALTER TABLE Persons
ADD CONSTRAINT PK_Person PRIMARY KEY (ID,LastName); |
|