其他分享
首页 > 其他分享> > 索引的创建和删除

索引的创建和删除

作者:互联网

//添加普通索引
CREATE index economy_organization_id on economy_organization(id)
//添加非空索引
CREATE UNIQUE INDEX economy_organization_id ON economy_organization (id) ;
//添加主键索引
CREATE PRIMARY INDEX economy_organization_id ON economy_organization (id) ;


//删除索引
drop index economy_organization_id on economy_organization ;
查询所有的索引
show index from economy_organization 

标签:index,删除,创建,CREATE,索引,organization,id,economy
来源: https://blog.csdn.net/qq_45396088/article/details/118733919