Hi,
In MySql command prompt i getting this error.Cannot add foriegn key constraint .
CREATE TABLE Contibutors (
Id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
MagazineId INT(6) NOT NULL,
Name VARCHAR(50) NOT NULL,
Email VARCHAR(100),
Guid VARCHAR(36) NOT NULL,
ContentSubmitted BIT,
CreatedOn DATETIME,
FOREIGN KEY (MagazineId) REFERENCES Magazine(Id)
);
If i do any thing wrong here.Will you please tell me.
Thanks,
prathyusha
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manas MohapatraPosted Aug 16, 2015, 3:45 AM
vutharadi prathyushaPosted Aug 16, 2015, 3:02 AM
Manas MohapatraPosted Aug 15, 2015, 9:33 AM