SQL-INDEX

In the case without reading the entire table, index the database application can find data faster.

 

Create an index:

CREATE INDEX INDEXNAME ON TABLENAME(COLUMN_NAME1);

CREATE INDEX INDEXNAME ON TABLENAME(COLUMN_NAME1,COLUMN_NAME2);

 

Delete the index:

DROP INDEX INDEXNAME;

Guess you like

Origin www.cnblogs.com/yaoze2018/p/11267059.html