Code Bye

mysql建立索引语句

mssql里面,下面这个建立非聚集索引语句在mysql里面的对应语句是什么呢?
create nonclustered index NonClu_IX_Contenta_aaa_bbb on Contenta (aaa desc,bbb desc)
解决方案

40

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


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明mysql建立索引语句