Oracle序列和索引

 

1.[生成13579循环序列]

create sequence mysql

increment by 2

cache 3  //缓存

 

删除序列    drop sequence 序列名

修改序列   alter sequence 序列名


2.索引

对某一类数据进行制定结构排序的操作

B树索引、降序索引、函数索引、位图索引

(1)B树索引(升序)以第一个数据为根节点查找  1500|vowid 

例如:1500  1100  2865  3005  4000

create index 索引名 on 表名(列名)
ep:create index emp_sal_ind on scott<sal>;

(2)降序索引 

create index 索引名 on 表名(列名) desc ;

posted @ 2022-04-26 00:56  你好,Alf  阅读(57)  评论(0编辑  收藏  举报