当前位置:Gxlcms > 数据库问题 > mysql索引之普通索引

mysql索引之普通索引

时间:2021-07-01 10:21:17 帮助过:19人阅读

2,sql :

alter table temp2 add index title (title);

3,sql :

  create index title on temp2(title);

删除索引

  drop index title on temp2;

查看索引

  show index from temp2;

 

普通索引的使用方式,一般在对筛选条件比较多的where后的字段建立索引,但是索引会影响数据的插入更新速度,

mysql索引之普通索引

标签:

人气教程排行