indexes in mysql code example
Example 1: show indexes mysql
SHOW INDEX FROM yourtable;
Example 2: mysql select statement after index
SELECT * FROM table1 USE INDEX (col1_index,col2_index)
WHERE col1=1 AND col2=2 AND col3=3;
SHOW INDEX FROM yourtable;
SELECT * FROM table1 USE INDEX (col1_index,col2_index)
WHERE col1=1 AND col2=2 AND col3=3;