Home  >  Article  >  Database  >  How to add index to table in navicat

How to add index to table in navicat

angryTom
angryTomforward
2020-03-14 11:05:524833browse

How to add index to table in navicat

#Navicat How to add indexes to tables

Analyze common query scenarios, add indexes to fields, and increase query speed.

You can add a single column index and a joint index.

How to add index to table in navicat

How to add index to table in navicat

How to add index to table in navicat

Right click, you can view and add modified indexes in the design table!

Indices must be added according to common query scenarios!

Write a sql statement and test it, and the index is indeed used!

You can determine what index is used by its name!

Let’s talk about optimizing queries. Every line of code can be optimized! Every query can be optimized! After writing the interface, you can check to see where the execution efficiency is low. If the data is small, it cannot be seen, but if the data is large, it will not be obvious. Bad design will show itself vividly!

PHP Chinese website, a large number of navicat tutorials, welcome to learn!

The above is the detailed content of How to add index to table in navicat. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete