Oracle8i SQL Reference
Release 2 (8.1.6)

A76989-01

Library

Product

Contents

Index

Prev Up Next

SQL Statements (continued), 17 of 17


ALTER SEQUENCE

Syntax


Purpose

To change the increment, minimum and maximum values, cached numbers, and behavior of an existing sequence. This statement affects only future sequence numbers. For additional information on sequences, see "CREATE SEQUENCE".

Prerequisites

The sequence must be in your own schema, or you must have the ALTER object privilege on the sequence, or you must have the ALTER ANY SEQUENCE system privilege.

Keywords and Parameters

The keywords and parameters in this statement serve the same purposes described in "CREATE SEQUENCE". In addition:

Examples

This statement sets a new maximum value for the ESEQ sequence:

ALTER SEQUENCE eseq 
   MAXVALUE 1500;

This statement turns on CYCLE and CACHE for the ESEQ sequence:

ALTER SEQUENCE eseq 
   CYCLE
   CACHE 5; 

Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index