oracle 12c ocp 题库,最新oracle 12c OCP认证考试题库解析(2)

本文介绍了Oracle数据库中序列的相关知识,包括CURRVAL和NEXTVAL的使用、序列的删除、序列值的范围调整以及序列在数据库异常关闭后的处理。重点讨论了序列的创建和管理,以及序列在多表中的应用。

2.Which two statements are true about sequences created in a single instance database? (Choose two.)

A.CURRVAL is used to refer to the last sequence number that has been generated

B.DELETE would remove a sequence from the database

C.The numbers generated by a sequence can be used only for one table

D.When the MAXVALUE limit for a sequence is reached, you can increase the MAXVALUE limit by using the ALTER SEQUENCE statement

E.When a database instance shuts down abnormally, the sequence numbers that have been cached but not used would be available once again when the database instance is restarted。

解析:Oracle的序列

伪列currval获取当前序列的值,调用currval,必须先调用nextval的值。 A正确

使用DROP sequence_name删除序列 B错误

序列是共享的对象,可以用于多个表 C错误

当序列到达maxvalue,可以使用ALTER SEQUENCE xxx修改序列的最大值 D正确

当数据库被异常关闭后,序列的缓存的数字但没有使用重启数据库不能使用缓存的序列的值 E错误

Answer:AD

39f8b1aaaee2bdc6b34b1d36e2545c6e.png

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值