How to trigger the joint index
1. Create a joint index on the user table username, password
![How to trigger joint index in MySQL](https://img.php.cn/upload/article/000/887/227/168517425051341.jpg)
##2. Trigger the joint index
(1) Using all the index keys of the joint index can trigger the joint index
![How to trigger joint index in MySQL](https://img.php.cn/upload/article/000/887/227/168517425011764.jpg)
(2) Using all the index keys of the joint index, but connecting with or, the joint index cannot be triggered.
![How to trigger joint index in MySQL](https://img.php.cn/upload/article/000/887/227/168517425190065.jpg)
(3) When the first field on the left of the joint index is used alone, the joint index
![How to trigger joint index in MySQL](https://img.php.cn/upload/article/000/887/227/168517425113673.jpg)
( 4) When using other fields of the joint index alone, the joint index cannot be triggered
![How to trigger joint index in MySQL](https://img.php.cn/upload/article/000/887/227/168517425191509.jpg)
The above is the detailed content of How to trigger joint index in MySQL. For more information, please follow other related articles on the PHP Chinese website!