å¤é¨ãã¼ã§ãããããã¯ãèµ·ãããµã³ãã«ã³ã¼ãã drop table if exists child; create table child (id int, pid int, primary key (id, pid))engine=innodb; drop table if exists parent; create table parent (id int, count int, primary key (id))engine=innodb; insert into parent values (1, 0); alter table child add foreign key (id) references parent (id); ãã©ã³ã¶ã¯ã·ã§ã³A ------------------------------------- begin; insert into child val
{{#tags}}- {{label}}
{{/tags}}