MySQL Indexing

Showing indicies

show index from <table_name>;

Adding indices

alter table <table_name> add index (<column_name>);

or if a text field. give a number of characters to index:

alter table <table_name> add index (<column_name>(<no_chars>);
 
mysql_indexing.txt · Last modified: 2009/04/21 09:12 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki