Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Force Index in MySql

EXPLAIN SELECT 
    productName, buyPrice
FROM
    products 
FORCE INDEX (idx_buyprice)
WHERE
    buyPrice BETWEEN 10 AND 80
ORDER BY buyPrice;
Code language: SQL (Structured Query Language) (sql)
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #Force #Index #MySql
ADD COMMENT
Topic
Name
5+9 =