mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / r / foreign_key.result
blobece53db2e9aaafcac31976d1444392f4e6796756
1 drop table if exists t1;
2 create table t1 (
3 a int not null references t2,
4 b int not null references t2 (c),
5 primary key (a,b),
6 foreign key (a) references t3 match full,
7 foreign key (a) references t3 match partial,
8 foreign key (a,b) references t3 (c,d) on delete no action
9 on update no action,
10 foreign key (a,b) references t3 (c,d) on update cascade,
11 foreign key (a,b) references t3 (c,d) on delete set default,
12 foreign key (a,b) references t3 (c,d) on update set null);
13 create index a on t1 (a);
14 create unique index b on t1 (a,b);
15 drop table t1;