注册 登录
编程论坛 MySQL论坛

求帮帮看看下面的语句,为什么设置的外键不起作用

纯黑色 发布于 2013-10-18 21:52, 2122 次点击
操作系统为:linux,bash shell
sql语句如下:

create table p( id int primary key)type =innode;
 create table c( id int primary key, pid int , foreign key(pid) references p(id) on update cascade on delete cascade)type =innode;

一个问题:所有的关键字必须用大写吗?

[ 本帖最后由 纯黑色 于 2013-10-18 22:45 编辑 ]
1 回复
#2
ghjsmzy2013-10-31 14:46
一个问题:所有的关键字必须用大写吗?
关键字,表名这些都不区分大小写
1