Introduction to the usage of federated index of Mysql
This article mainly introduces "the introduction of the usage of the joint index of Mysql". In the daily operation, I believe that many people have doubts about the introduction of the usage of the joint index of Mysql. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "introduction to the usage of the joint index of Mysql"! Next, please follow the editor to study!
1. Create a federated index of the table (a, b, c)
Create table test (an int, b int,c int,d int,key index_abc (a meme bjorie c)) engine=InnoDB default charset=utf8
two。 Insert 10000 pieces of data
DROP PROCEDURE IF EXISTS proc_initData;DELIMITER $CREATE PROCEDURE proc_initData () BEGINDECLARE i INT DEFAULT 1bot where I