mysql建立索引语句

iou3344 2016-03-11 01:07:35
mssql里面,下面这个建立非聚集索引语句在mysql里面的对应语句是什么呢?
create nonclustered index NonClu_IX_Contenta_aaa_bbb on Contenta (aaa desc,bbb desc)
...全文
129 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
iou3344 2016-03-12
  • 打赏
  • 举报
回复
引用 2 楼 ACMAIN_CHM的回复:
create index NonClu_IX_Contenta_aaa_bbb on Contenta (aaa desc,bbb desc)
引用
CREATE [ONLINE|OFFLINE] [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name [index_type] ON tbl_name (index_col_name,...) [index_option] ... index_col_name: col_name [(length)] [ASC | DESC] index_type: USING {BTREE | HASH | RTREE} index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER parser_name
这是mysql的建立索引的语句?你确定吗?
ACMAIN_CHM 2016-03-11
  • 打赏
  • 举报
回复
create index NonClu_IX_Contenta_aaa_bbb on Contenta (aaa desc,bbb desc)
引用
CREATE [ONLINE|OFFLINE] [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name [index_type] ON tbl_name (index_col_name,...) [index_option] ... index_col_name: col_name [(length)] [ASC | DESC] index_type: USING {BTREE | HASH | RTREE} index_option: KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER parser_name
iou3344 2016-03-11
  • 打赏
  • 举报
回复
刚才百度是看到mysql里面不支持desc排序的索引,是这样的吗?

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧