create index Stuname on student(name)
create index Stusex on student(sex)
create index Stugrade on student(grade)
注意的问题,考虑是不是要建立唯一索引(unique),如果有学号的话,可以考虑建立唯一索引引。
再就是对经常查询,但又相对稳定的可以建立聚簇索引,提高查询效率
1.可以把那些null值设置成一个特殊的值,比如"N/A"2.where nvl(col,0) =0
在col字段上创建一个函数索引
create index ind_col on table(nvl(col,0))
这样就能用索引了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)