0
CREATE TABLE blog
(
    blog_id BIGINT(255),
    email VARCHAR(255),
    blog_title CHAR(255),
    blog_content TEXT(5000),
    PRIMARY KEY (blog_id),
    FOREIGN KEY (email) REFERENCES detail(email)
);
PravinS
  • 2,640
  • 3
  • 21
  • 25
sabari rangan
  • 659
  • 1
  • 6
  • 14
  • 1
    Possible duplicate of [Error Code: 1005. Can't create table '...' (errno: 150)](http://stackoverflow.com/questions/9018584/error-code-1005-cant-create-table-errno-150) – user1140237 Dec 28 '15 at 06:31

1 Answers1

0

This link can solve your problem

Vipin Jain
  • 3,686
  • 16
  • 35