Q

Max value of sequence

I declared a sequence, and I want to know what will be the Max value, at what value it stops and also on what factors the Max value depends and whether it varies on some factors.

I declared a sequence, and I want to know what will be the Max value, at what value it stops and also on what factors the Max value depends and whether it varies on some factors.
CREATE SEQUENCE Mysequence
    MINVALUE 1
    START WITH 1
    INCREMENT BY 1
The Oracle documentation for the CREATE SEQUENCE command has your answer.

There is a maximum value, defined as 10^27 for ascending sequences and -1 for descending sequences.

This was first published in December 2006

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close