MySQL 创建索引(Create Index)的方法和语法结构及例子

很文博客hinven.com 数据库评论80字数 354阅读模式
广告也精彩

MySQL 创建索引(Create Index)的方法和语法结构及例子

CREATE INDEX Syntax文章源自很文博客https://www.hinven.com很文博客-https://www.hinven.com/51793.html

CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name文章源自很文博客https://www.hinven.com很文博客-https://www.hinven.com/51793.html

[index_type]文章源自很文博客https://www.hinven.com很文博客-https://www.hinven.com/51793.html

ON tbl_name (index_col_name,...)文章源自很文博客https://www.hinven.com很文博客-https://www.hinven.com/51793.html

[index_type]文章源自很文博客https://www.hinven.com很文博客-https://www.hinven.com/51793.html

index_col_name:文章源自很文博客https://www.hinven.com很文博客-https://www.hinven.com/51793.html

col_name [(length)] [ASC | DESC]文章源自很文博客https://www.hinven.com很文博客-https://www.hinven.com/51793.html

index_type:

USING {BTREE | HASH | RTREE}

  1. -- 创建无索引的表格
  2. create table testNoPK (
  3. id int not null,
  4. name varchar(10)
  5. );
  6. -- 创建普通索引
  7. create index IDX_testNoPK_Name on testNoPK (name);

工具:作品在线观看

女优:最新作品观看

中文:国语在线观看

weinxin
我的微信
扫一扫更精彩
大家的支持是我更新的动力!!!
 
广告也精彩
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证