顯然,我在下面的SQL語句語法錯誤:修正了我的MySQL錯誤#1064
create database project_line;
use project_line;
drop table if exists project;
create table project
(
p_id int primary key,
p_nm varchar(255) not null,
p_line varchar(255) not null
)
ENGINE = INNODB;
drop table if exists meta;
create table meta
(
m_id primary key,
p_id not null,
meta_nm varchar(255) not null,
foreign key (p_id) references project (p_id)
)
ENGINE = INNODB;
你能指出哪裏?
謝謝你!我應該可以睡一會兒:/ – 2013-05-13 10:47:16
@ f1zz0_13:你應該將帖子標記爲答案,無論哪個人幫助你。 – ankurtr 2013-05-13 10:48:52