foreign_key.test

来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· TEST 代码 · 共 26 行

TEST
26
字号
## Test syntax of foreign keys#--disable_warningsdrop table if exists t1;--enable_warningscreate table t1 (	a int not null references t2,	b int not null references t2 (c),	primary key (a,b),	foreign key (a) references t3 match full,	foreign key (a) references t3 match partial,	foreign key (a,b) references t3 (c,d) on delete no action	  on update no action,	foreign key (a,b) references t3 (c,d) on update cascade,	foreign key (a,b) references t3 (c,d) on delete set default,	foreign key (a,b) references t3 (c,d) on update set null);create index a on t1 (a);create unique index b on t1 (a,b);drop table t1;# End of 4.1 tests

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?