Ask the Expert

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.
CREATE SEQUENCE Mysequence
    MINVALUE 1
    START WITH 1
    INCREMENT BY 1

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: