【发布时间】:2010-09-19 08:39:27
【问题描述】:
我有这两个CREATE TABLE 声明:
CREATE TABLE GUEST (
id int(15) not null auto_increment PRIMARY KEY,
GuestName char(25) not null
);
CREATE TABLE PAYMENT (
id int(15) not null auto_increment
Foreign Key(id) references GUEST(id),
BillNr int(15) not null
);
第二个陈述有什么问题?它没有创建新表。
【问题讨论】:
-
对于初学者,您可能想用 Foreign 替换 Foriegn ;)
标签: mysql create-table