前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【2019年8月】OCP 071认证考试最新版本的考试原题-第30题

【2019年8月】OCP 071认证考试最新版本的考试原题-第30题

原创
作者头像
用户5892232
修改2019-11-18 17:25:50
4870
修改2019-11-18 17:25:50
举报

choose two

Evalute these conmands which execate sucestully

CREATE SEQUENCE ord_seq

INCREMENT BY 1

START WITH 1

MAXVALUE 100000

CYCLE

CACHE 5000;

Which two statements are true atout the ORD_ITEMS table and the ORD_SEQ sequence?

A) Any user inserting rows into table ORD_ITEMS must have been granted access to sequence ORD_SEQ.

B) Colunn ORD_NO gets the next number from squence ORD_SEQ whenever a row is inserted into ORD_ITEMS and no explict value is given for ORD_NO.

C) Sepuence ORD_SEQ cycles back to 1 after every 5000 numbers and can cycle 20 times

D) IF sequence ORD_SEQ is dropped then the default value for column ORD_NO will be NULL for rows inserted into ORD_ITEMS.

E) Sequence ORD_SEQ is guaranteed not to genenate duplicate numbers.

Answer:AB

(解析:序列是可以共享的,但是需要给予 select 的权限;可以从序列中获取下一个值。)

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档