 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
gemisigo
Joined: 11 Mar 2010 Posts: 2165
|
|
[SA 6] - SQL Reference for adding constraints |
|
SQL Reference is missing the foreign key structure in adding constraints section. After entering ALTER TABLE schema.table taking the ADD Table_constraints route leaves me to choose either PRIMARY KEY or UNIQUE. I guess there should be a FOREIGN KEY (column_name) REFERENCES ( ... ) junction too, to create queries like this example in the help:
 |
 |
ALTER TABLE Person.ContactBackup
ADD CONSTRAINT FK_ContactBacup_Contact FOREIGN KEY (ContactID)
REFERENCES Person.Person (BusinessEntityID) ;
|
|
|
Fri Sep 02, 2011 7:13 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|