Revision [991]

Last edited on 2007-10-02 19:50:21 by WikiAdmin
Deletions:
{{adsense}}


Revision [990]

Edited on 2007-10-02 19:50:03 by WikiAdmin
Additions:
=== Rebuild an index ===
repair table xxx.table1 quick;
=== Locate indexes ===
select TABLE_SCHEMA, TABLE_NAME, INDEX_NAME, INDEX_TYPE from statistics;


Revision [237]

Edited on 2007-04-17 08:06:05 by WikiAdmin
Additions:
create index INDEX_NAME on TABLE_NAME (COL1(10) ASC,COL2(30) DESC);
# create an index on COL1 using first 10 bytes in acceding order, and COL2 using first 30 bytes in descending order.
=== Drop an index ===
drop index INDEX_NAME on TABLE_NAME;
Deletions:
create index INDEX_NAME on TABLE_NAME (COL1,COL2);


Revision [236]

Edited on 2007-04-17 08:02:59 by WikiAdmin
Additions:
=== Query existing indexes ===
show index from TABLE_NAME;


Revision [235]

The oldest known version of this page was created on 2007-04-17 08:01:37 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki