Oracle SEQUENCE: Key Features

  1. A sequence is a database object used to generate unique, incrementing or decrementing number sequences.
  2. One sequence can be shared by multiple tables, with each table able to use the sequence to generate unique primary key values.
  3. The value of a sequence in the database is persistent, meaning that even if the database is restarted, the value of the sequence will still be retained.
  4. The values of the sequence can be pre-cached to improve performance.
  5. The sequence can be incremented or decremented by a specified step, and also have minimum and maximum values set.
  6. Sequences can be directly referenced in a table’s column or SQL statement to generate unique sequence values.
bannerAds