How to add index to datetime column?

Possible Duplicate
How to create an index on the date part of the DATETIME field in MySql

In mysql. This is a date column.

+3
source share
1 answer

You do this the same way as for any other type of column:

CREATE INDEX IX_tblname_columnname
ON tbl_name (columnname)

See the documentation for more information and other parameters.

+2
source

Source: https://habr.com/ru/post/1739648/


All Articles