Oracle序列和索引
发布日期:2021-05-07 00:45:30 浏览次数:34 分类:原创文章

本文共 330 字,大约阅读时间需要 1 分钟。

 

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 ;

上一篇:第七章PL/SQL语言开发
下一篇:Centos7配置jdk环境

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2025年03月11日 19时11分02秒