Can’t Create Foreign Keys
-
For some reason I am unable to create foreign keys within my databases.
The following code returns the error ‘Failed to create table.’CREATE TABLE Orders ( O_Id int NOT NULL, OrderNo int NOT NULL, P_Id int, PRIMARY KEY (O_Id), FOREIGN KEY (P_Id) REFERENCES Persons(P_Id) );
Any help is greatly appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can’t Create Foreign Keys’ is closed to new replies.