hi i know about MySQL
Indexes to some extent.
i can create a index when creating a table by
CREATE TABLE Product (
-> ID SMALLINT UNSIGNED NOT NULL,
-> ModelID SMALLINT UNSIGNED NOT NULL,
-> PRIMARY KEY (ID),
-> INDEX (ModelID)
add an index after create table by
CREATE INDEX index_name
ON table_name (column_name)
also alter the index by
ALTER TABLE TABLE_NAME ADD INDEX (COLUMN_NAME);
**what I want to know is how indexing makes the select query fast
how does indexing affects to the select algorithm of MySQL
, how the indexed columns are affecting to the algorithm ? please explain , thanks in advance