creating Index in MySQL database
This is the syntax described here to create an Index in MySQL database for a particular table through which the query can be able tom access only the record which needs to be accessed according to description of the Index.
This is the syntax to create the Index -
Code:
CREATE [ONLINE|OFFLINE] [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name
[index_type]
ON tbl_name (index_col_name,...)
[index_option] ...
index_col_name:
col_name [(length)] [ASC | DESC]
index_type:
USING {BTREE | HASH | RTREE}
index_option:
KEY_BLOCK_SIZE [=] value
| index_type
| WITH PARSER parser_name
Bookmarks