TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vutharadi prathyusha
NA
18
26.6k
cannot add foriegn key constraint
Aug 15 2015 1:47 AM
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
Reply
Answers (
3
)
unable to connect to the mysql
Syntax error in MySql