mysql权威指南的问题
请教一个问题:
<MYSQL权威指南>里面提到InnoDB类型数据表不支持在一个数据表里面使用复合索引来生成多个互不干扰的序列编号(P119),而在P209却有这么一个例子:
create table parent
{
par_id int not null,
primary key(par_id),
}type=InnoDB;
create table child
{
par_id int not null,
child_id int not null,
primary key( par_id,child_id),
foreign key (par_id) references parent(par_id) on delete cascade
} type=InnoDB;
在创建child数据表的时候 不是建立了一个复合索引吗?
问:是书上互相矛盾了 还是理解错了?如果是理解错了 该怎么理解呢?