Oracle资料之sequence

本文介绍了Oracle数据库中sequence的使用,包括如何获取sequence的下一个值以及详细解析了sequence的相关视图,帮助读者理解sequence视图的含义和字段信息。
摘要由CSDN通过智能技术生成

◆ 获取sequence下一个值

select sequence.nextval from dual;

◆ sequence视图:

ALL_SEQUENCES

视图含义:

ALL_SEQUENCES describes all sequences accessible to the current user.

相关视图:

1、DBA_SEQUENCES describes all sequences in the database.

2、USER_SEQUENCES describes all sequences owned by the current user. This view does not display the SEQUENCE_OWNER column.

字段信息:

Column Datatype NULL Description
SEQUENCE_OWNER VARCHAR2(30) NOT NULL Name of the owner of the sequence
SEQUENCE_NAME VARCHAR2(30) NOT NULL Sequence name
MIN_VALUE NUMBER Minimum value of the sequence
MAX_VALUE NUMBER<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值