错误#1005 - 无法创建表`testdb` .blog`(错误号:150"外键约束形成错误")?

时间:2015-12-28 06:27:03

标签: mysql

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)
);

1 个答案:

答案 0 :(得分:0)