foreign_key.result
Upload User: romrleung
Upload Date: 2022-05-23
Package Size: 18897k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  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;