oh_jack 2009-06-20 16:41
浏览 232
已采纳

一个索引的问题

有一个order by a asc ,b desc,c desc 的排序
建了个索引 create index index_o on A(a asc,b desc,c desc)
但是没有用 难道order by 后面的只有在全升序或者全降序的条件下才有用?

数据库是mysql5

  • 写回答

1条回答 默认 最新

  • xenocide 2009-06-20 17:36
    关注

    [quote]An index_col_name specification can end with ASC or DESC. These keywords are allowed 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. [/quote]

    嗯,当前索引列只有 ASC 有效。连 6.0 都不支持 DESC。

    参考
    [url]http://dev.mysql.com/doc/refman/5.4/en/create-index.html[/url]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度