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)
);
Asked
Active
Viewed 172 times
0

PravinS
- 2,640
- 3
- 21
- 25

sabari rangan
- 659
- 1
- 6
- 14
-
1Possible 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