显然,我在以下 SQL 语句中有语法错误:
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;
你能指出在哪里吗?