开发者

How do I add an index to a column that is datetime?

开发者 https://www.devze.com 2022-12-25 06:18 出处:网络
Possible Duplicate How does one create an index on the date part of DATETIME field in MySql 开发者_StackOverflow

Possible Duplicate

How does one create an index on the date part of DATETIME field in MySql

开发者_StackOverflow

In mysql. It's a date column


You do it in the same way as you would for any other column type:

CREATE INDEX IX_tblname_columnname
ON tbl_name (columnname)

See the documentation for more information and other options.

0

精彩评论

暂无评论...
验证码 换一张
取 消