Oracle8i SQL Reference
Release 3 (8.1.7)

Part Number A85397-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

SQL Statements:
ALTER CLUSTER to ALTER SYSTEM, 17 of 19


ALTER SEQUENCE

Purpose

Use the ALTER SEQUENCE statement to change the increment, minimum and maximum values, cached numbers, and behavior of an existing sequence. This statement affects only future sequence numbers.

See Also: CREATE SEQUENCE for additional information on sequences 

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.

Syntax


Keywords and Parameters

The keywords and parameters in this statement serve the same purposes they serve when you create a sequence.

Examples

Modifying a Sequence 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; 

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index