源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2021-04-28 17:28 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:MySQL 创建索引(Create Index)的方法和语法结构及例子
CREATE INDEX Syntax CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name [index_type] ON tbl_name (index_col_name,...) [index_type] index_col_name: col_name [(length)] [ASC | DESC] index_type: USING {BTREE | HASH | RTREE}
[u]复制代码[/u] 代码如下:
-- 创建无索引的表格 create table testNoPK ( id int not null, name varchar(10) ); -- 创建普通索引 create index IDX_testNoPK_Name on testNoPK (name);
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部