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 last published in December 2006

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close