单选题Given the following ALTER SEQUENCE statement: ALTER SEQUENCE myseq RESTART WITH 0 INCREMENT BY 1 NO MAXVALUE CACHE 5 ORDER Assuming that the sequence had reached a value of 100 prior to the RESTART, which of the following is true?()A The next value wil

题目
单选题
Given the following ALTER SEQUENCE statement: ALTER SEQUENCE myseq RESTART WITH 0 INCREMENT BY 1 NO MAXVALUE CACHE 5 ORDER Assuming that the sequence had reached a value of 100 prior to the RESTART, which of the following is true?()
A

The next value will be 0 and the sequence will never use the values 101 to 105.

B

The next value will be 101 to ensure uniqueness between existing and newly generated sequence values.

C

Previously cached values are retained by DB2, and after the restart, will be used for values 101 to 105.

D

The next value will be 0 and DB2 will not ensure uniqueness between existing and newly generated values.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

A sequence was created with the DDL statement shown below:CREATE SEQUENCE my_sequence CACHE 10 ORDER The following statements are successfully executed in sequence through separate database connections: CONNECTION1 - VALUES NEXT VALUE FOR my_sequence INTO :con1hvar CONNECTION2 - VALUES NEXT VALUE FOR my_sequence INTO :con2hvar CONNECTION1 - VALUES NEXT VALUE FOR my_sequence INTO:con1hvarWhat is the current value of the :con1hvar host variable?()

A.2

B.3

C.11

D.30


参考答案:B

第2题:

Which of the following privileges permits a user to update the comment on a sequence?()

A.CONTROL

B.UPDATE

C.USAGE

D.ALTER


参考答案:D

第3题:

Within the application MY_APP the following PREVIOUS VALUE expression references the sequence MY_SEQ: PREVIOUS VALUE FOR my_seq After which of the following events will the most recently generated value of MY_SEQ persist so that it can be returned to the active MY_APP application?()

A.After a ROLLBACK is issued

B.After the sequence is altered

C.After the sequence is dropped

D.After the current session ends


参考答案:A

第4题:

Within the application MY_APP the following PREVIOUS VALUE expression references the sequence MY_SEQ: PREVIOUS VALUE FOR my_seq After which of the following events will the most recently generated value of MY_SEQ persist so that it can be returned to the active MY_APP application?()

  • A、After a ROLLBACK is issued
  • B、After the sequence is altered
  • C、After the sequence is dropped
  • D、After the current session ends

正确答案:A

第5题:

You issued the following statement:   SQL> ALTER SESSION SET NLS_LANG=FRENCH_CANADA.WE8ISO8859P1;   Which parameter is NOT overridden by using the above statement?()  

  • A、 the value of the NLS_LANGUAGE variable
  • B、 the value of the NLS_TERRITORY variable
  • C、 the value of the NLS_CURRENCY variable
  • D、the character encoding scheme used by the client application

正确答案:C

第6题:

Which of the following is a characteristic of a sequence?()

A.A sequence will never generate duplicate values

B.The MAXVALUE of a sequence can be equal to the MINVALUE

C.It is not possible to create a sequence that generates a constant since the INCREMENT value must be greater than zero

D.When a sequence cycles back to either the MAXVALUE or MINVALUE, it will always be equal to the specified value of either of these two boundaries


参考答案:B

第7题:

Given the following ALTER SEQUENCE statement: ALTER SEQUENCE myseq RESTART WITH 0 INCREMENT BY 1 NO MAXVALUE CACHE 5 ORDER Assuming that the sequence had reached a value of 100 prior to the RESTART, which of the following is true?()

  • A、The next value will be 0 and the sequence will never use the values 101 to 105.
  • B、The next value will be 101 to ensure uniqueness between existing and newly generated sequence values.
  • C、Previously cached values are retained by DB2, and after the restart, will be used for values 101 to 105.
  • D、The next value will be 0 and DB2 will not ensure uniqueness between existing and newly generated values.

正确答案:D

第8题:

Which of the following is a feature of a unit of work?()

A.It applies to a single data server.

B.It is a recoverable sequence of operations.

C.Its value can be queried from the system catalog tables.

D.It begins when the application connects to the data server.


参考答案:B

第9题:

Which of the following is a characteristic of a sequence?()

  • A、A sequence will never generate duplicate values
  • B、The MAXVALUE of a sequence can be equal to the MINVALUE
  • C、It is not possible to create a sequence that generates a constant since the INCREMENT value must be greater than zero
  • D、When a sequence cycles back to either the MAXVALUE or MINVALUE, it will always be equal to the specified value of either of these two boundaries

正确答案:B

第10题:

Which of the following is a feature of a unit of work?()

  • A、It applies to a single data server.
  • B、It is a recoverable sequence of operations.
  • C、Its value can be queried from the system catalog tables.
  • D、It begins when the application connects to the data server.

正确答案:B

更多相关问题