索引

create table autor ---作者信息表
(
    AId varchar(20),
    AName varchar(20),
    Aage int
)

---------------

创建索引

create  index  索引名  on 表 (字段1,字段2.....)

索引名: 起个名字

表: 要添加索引的表

字段1:被添加索引的字段

create index S_AId  on autor (AId)

----------------

删除索引

deop index  索引名 on 表

drop index  S_Aid on autor

 

posted @ 2017-01-12 15:13  不忘初心de博客  阅读(75)  评论(0编辑  收藏  举报