May 2020
Beginner
564 pages
14h 9m
English
To see what index a query has, you can use the following sample syntax:
EXPLAIN SELECT statement;
To create an index, you can use the following sample syntax:
ALTER TABLE tablenameADD INDEX indexname (columnnames);
To change an index in MySQL, you need to drop it and then add it back again using the following sample syntax:
ALTER TABLE tablename DROP INDEX indexname;
Read now
Unlock full access