Re: Two indexing questions

2004-02-27 Thread Sasha Pachev
Marc Slemko wrote: On Thu, 26 Feb 2004, Keith Thompson wrote: Given these two tables: create table t1 ( id int unsigned auto_increment, a int, ... [other fields] primary key (id), index aid (a,id) ) type=innodb; create table t2 ( id int unsigned,

Two indexing questions

2004-02-26 Thread Keith Thompson
Given these two tables: create table t1 ( id int unsigned auto_increment, a int, ... [other fields] primary key (id), index aid (a,id) ) type=innodb; create table t2 ( id int unsigned, b int, ... [other fields] index id (i

Re: Two indexing questions

2004-02-26 Thread Marc Slemko
On Thu, 26 Feb 2004, Keith Thompson wrote: > Given these two tables: > > create table t1 ( >id int unsigned auto_increment, >a int, >... [other fields] >primary key (id), >index aid (a,id) > ) type=innodb; > > create table t2 ( >id int un