OCP-1Z0-051 第45题 SEQUENCE(序列)的注意事项
2014-05-06 15:26
423 查看
一、原题
Which two statements are true about sequences created in a single instance database? (Choose two.)
A. The numbers generated by a sequence can be used only for one table.
B. DELETE <sequencename> would remove a sequence from the database.
C. CURRVAL is used to refer to the last sequence number that has been generated.
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.
答案:CD
二、题目翻译
在单实例数据库中关于创建序列哪两句话是正确的?(选择两个)
A. 一个序列生成的值只能用于一个表。
B. DELETE <sequencename>可以从数据库里移除一个序列。
C. CURRVAL是指生成的最后的序列值。
D. 当达到序列的MAXVALUE限制时,你可以使用ALTER SEQUENCE语句增加MAXVALUE。
E. 当数据库实例非正常关闭,已经缓存到内存里但是没有被使用的序列数当实例再次打开后可以再次使用。
三、题目解析
A选项不正确,因为一个序列生成的值可以用于多个表。
B选项不正确,因为删除序列要用 DROP SEQUENCE sequencename。
E选项不正确,因为如果内存非正常关闭,缓存的数会丢失,不能再继续使用了。
Which two statements are true about sequences created in a single instance database? (Choose two.)
A. The numbers generated by a sequence can be used only for one table.
B. DELETE <sequencename> would remove a sequence from the database.
C. CURRVAL is used to refer to the last sequence number that has been generated.
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.
答案:CD
二、题目翻译
在单实例数据库中关于创建序列哪两句话是正确的?(选择两个)
A. 一个序列生成的值只能用于一个表。
B. DELETE <sequencename>可以从数据库里移除一个序列。
C. CURRVAL是指生成的最后的序列值。
D. 当达到序列的MAXVALUE限制时,你可以使用ALTER SEQUENCE语句增加MAXVALUE。
E. 当数据库实例非正常关闭,已经缓存到内存里但是没有被使用的序列数当实例再次打开后可以再次使用。
三、题目解析
A选项不正确,因为一个序列生成的值可以用于多个表。
B选项不正确,因为删除序列要用 DROP SEQUENCE sequencename。
E选项不正确,因为如果内存非正常关闭,缓存的数会丢失,不能再继续使用了。
相关文章推荐
- OCP-1Z0-051 补充题库 第21题 SEQUENCE序列注意事项
- OCP-1Z0-051 第1题 CTAS语句建表注意事项
- OCP-1Z0-051 第108题 COUNT函数使用注意事项
- OCP-1Z0-051 第158题 select... for update语句注意事项
- OCP-1Z0-051 第170题 DELETE的注意事项
- OCP-1Z0-051 第42题 视图的注意事项
- OCP-1Z0-051 补充题库 第31题 subquery子查询的注意事项
- OCP-1Z0-051 第9题 集合操作INTERSECT注意事项
- OCP-1Z0-051 补充题库 第27题 UNION的注意事项
- OCP-1Z0-051 第139题 子查询的注意事项
- OCP-1Z0-051 第38题 视图注意事项
- OCP-1Z0-051 第140题 子查询中使用GROUP BY注意事项
- OCP-1Z0-051 补充题库 第5题 主查询和子查询的注意事项
- OCP-1Z0-051 第40题 视图的注意事项
- OCP-1Z0-051 第41题 视图的注意事项
- OCP-1Z0-051 第175题 savepoint的注意事项
- OCP-1Z0-051 补充题库 第17题 约束的注意事项
- OCP-1Z0-051 第64题 order by使用别名注意事项
- OCP-1Z0-051 第152题 union操作的注意事项
- OCP-1Z0-051 第172题 事务savepoint的注意事项