SQL Index Performance - ASC vs DESC

前端 未结 4 695
花落未央
花落未央 2021-01-01 14:07

I\'ve got a user table keyed on an auto-increment int column that looks something like this:

CREATE TABLE `user_def` (
  `user_id` int(11) NOT NULL AUTO_INC         


        
4条回答
  •  情书的邮戳
    2021-01-01 15:05

    From the MySQL 5.6 documentation:

    An index_col_name specification can end with ASC or DESC. These keywords are permitted for future extensions for specifying ascending or descending index value storage. Currently, they are parsed but ignored; index values are always stored in ascending order.

提交回复
热议问题